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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 1007 | CSS | 8년 전 | 1838 | ||
| 1006 | CSS | 8년 전 | 2544 | ||
| 1005 | CSS | 8년 전 | 2003 | ||
| 1004 | HTML | 8년 전 | 2419 | ||
| 1003 | HTML | 8년 전 | 2853 | ||
| 1002 | HTML | 8년 전 | 3230 | ||
| 1001 | HTML | 8년 전 | 3698 | ||
| 1000 | HTML | 8년 전 | 2170 | ||
| 999 | HTML | 8년 전 | 2399 | ||
| 998 | HTML | 8년 전 | 2328 | ||
| 997 | HTML | 8년 전 | 1949 | ||
| 996 | HTML | 8년 전 | 2228 | ||
| 995 | 기타 | 8년 전 | 2091 | ||
| 994 | 기타 | 8년 전 | 2372 | ||
| 993 | 기타 | 8년 전 | 3235 | ||
| 992 | 반응형 | 8년 전 | 2761 | ||
| 991 | 반응형 | 8년 전 | 1984 | ||
| 990 | 반응형 | 8년 전 | 1951 | ||
| 989 | 반응형 | 8년 전 | 2257 | ||
| 988 | 반응형 | 8년 전 | 2419 | ||
| 987 | 반응형 | 8년 전 | 2510 | ||
| 986 | CSS | 8년 전 | 2655 | ||
| 985 | CSS | 8년 전 | 2715 | ||
| 984 | CSS | 8년 전 | 2679 | ||
| 983 | CSS | 8년 전 | 2361 | ||
| 982 | CSS | 8년 전 | 2027 | ||
| 981 | CSS | 8년 전 | 2148 | ||
| 980 | CSS | 8년 전 | 3642 | ||
| 979 | CSS | 8년 전 | 2933 | ||
| 978 | CSS | 8년 전 | 2168 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기