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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 827 | HTML | 8년 전 | 1578 | ||
| 826 | HTML | 8년 전 | 2311 | ||
| 825 | HTML | 8년 전 | 2106 | ||
| 824 | HTML | 8년 전 | 1923 | ||
| 823 | HTML | 8년 전 | 2422 | ||
| 822 | HTML | 8년 전 | 1959 | ||
| 821 | HTML | 8년 전 | 2576 | ||
| 820 | HTML | 8년 전 | 2582 | ||
| 819 | HTML | 8년 전 | 2506 | ||
| 818 | HTML | 8년 전 | 1714 | ||
| 817 | HTML | 8년 전 | 1703 | ||
| 816 | HTML | 8년 전 | 1448 | ||
| 815 | HTML | 8년 전 | 1470 | ||
| 814 | HTML | 8년 전 | 2068 | ||
| 813 | HTML | 8년 전 | 1675 | ||
| 812 | HTML | 8년 전 | 1749 | ||
| 811 | HTML | 8년 전 | 1756 | ||
| 810 | HTML | 8년 전 | 2394 | ||
| 809 | HTML | 8년 전 | 1786 | ||
| 808 | HTML | 8년 전 | 2194 | ||
| 807 | HTML | 8년 전 | 1967 | ||
| 806 | HTML | 8년 전 | 2002 | ||
| 805 | HTML | 8년 전 | 1948 | ||
| 804 | CSS | 8년 전 | 2337 | ||
| 803 | CSS | 8년 전 | 2245 | ||
| 802 | CSS | 8년 전 | 2337 | ||
| 801 | HTML | 8년 전 | 1951 | ||
| 800 | HTML | 8년 전 | 1807 | ||
| 799 | 기타 | 8년 전 | 2367 | ||
| 798 | HTML | 8년 전 | 1996 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기