css를 이용한 툴팁만들기
<!DOCTYPE html>
<html>
<style>
.tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: black;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
/* Position the tooltip */
position: absolute;
z-index: 1;
}
.tooltip:hover .tooltiptext {
visibility: visible;
}
</style>
<body style="text-align:center;">
<p>Move the mouse over the text below:</p>
<div class="tooltip">Hover over me
<span class="tooltiptext">Tooltip text</span>
</div>
<p>Note that the position of the tooltip text isn't very good. Go back to the tutorial and continue reading on how to position the tooltip in an desirable way.</p>
</body>
</html>
게시판 목록
퍼블리셔팁
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 797 | HTML | 8년 전 | 1699 | ||
| 796 | HTML | 8년 전 | 1510 | ||
| 795 | HTML | 8년 전 | 3288 | ||
| 794 | 기타 | 8년 전 | 2241 | ||
| 793 | HTML | 8년 전 | 3740 | ||
| 792 | HTML | 8년 전 | 1847 | ||
| 791 | 반응형 | 8년 전 | 2548 | ||
| 790 | HTML | 8년 전 | 10028 | ||
| 789 | HTML | 8년 전 | 5727 | ||
| 788 | CSS | 8년 전 | 2457 | ||
| 787 | 반응형 | 8년 전 | 3253 | ||
| 786 | 웹접근성 | 9년 전 | 3450 | ||
| 785 | 웹접근성 | 9년 전 | 2373 | ||
| 784 | 기타 | 9년 전 | 2377 | ||
| 783 | CSS | 9년 전 | 2231 | ||
| 782 | CSS | 9년 전 | 2405 | ||
| 781 | CSS | 9년 전 | 3940 | ||
| 780 | 반응형 | 9년 전 | 4292 | ||
| 779 | CSS | 9년 전 | 3135 | ||
| 778 | 반응형 | 9년 전 | 3271 | ||
| 777 | 반응형 | 9년 전 | 7623 | ||
| 776 | CSS | 9년 전 | 4769 | ||
| 775 | CSS | 9년 전 | 5379 | ||
| 774 | CSS | 9년 전 | 4604 | ||
| 773 | 반응형 | 9년 전 | 3591 | ||
| 772 | CSS | 9년 전 | 2979 | ||
| 771 | 웹접근성 | 9년 전 | 3518 | ||
| 770 | HTML | 9년 전 | 3727 | ||
| 769 | HTML | 9년 전 | 2366 | ||
| 768 | 9년 전 | 2383 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기