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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 977 | CSS | 8년 전 | 1661 | ||
| 976 | CSS | 8년 전 | 2116 | ||
| 975 | CSS | 8년 전 | 1610 | ||
| 974 | CSS | 8년 전 | 5248 | ||
| 973 | CSS | 8년 전 | 3247 | ||
| 972 | CSS | 8년 전 | 3048 | ||
| 971 | CSS | 8년 전 | 2126 | ||
| 970 | HTML | 8년 전 | 3040 | ||
| 969 | HTML | 8년 전 | 3518 | ||
| 968 | CSS | 8년 전 | 2441 | ||
| 967 | CSS | 8년 전 | 1932 | ||
| 966 | CSS | 8년 전 | 1696 | ||
| 965 | CSS | 8년 전 | 2695 | ||
| 964 | CSS | 8년 전 | 2576 | ||
| 963 | CSS | 8년 전 | 3108 | ||
| 962 | CSS | 8년 전 | 1808 | ||
| 961 | CSS | 8년 전 | 1497 | ||
| 960 | CSS | 8년 전 | 2269 | ||
| 959 | CSS | 8년 전 | 1889 | ||
| 958 | CSS | 8년 전 | 2146 | ||
| 957 | CSS | 8년 전 | 2185 | ||
| 956 | CSS | 8년 전 | 2048 | ||
| 955 | CSS | 8년 전 | 2210 | ||
| 954 | CSS | 8년 전 | 2339 | ||
| 953 | CSS | 8년 전 | 2889 | ||
| 952 | CSS | 8년 전 | 2496 | ||
| 951 | CSS | 8년 전 | 2378 | ||
| 950 | CSS | 8년 전 | 1858 | ||
| 949 | CSS | 8년 전 | 1905 | ||
| 948 | CSS | 8년 전 | 2091 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기