CSS 툴팁
페이지 정보
작성자 서방님 댓글 0건 조회 130회 작성일 13-05-14 09:26본문
<style type="text/css">
a.tooltip {outline:none; }
a.tooltip strong {line-height:30px;}
a.tooltip:hover {text-decoration:none;}
a.tooltip span {
z-index:10;display:none; padding:14px 20px;
margin-top:-30px; margin-left:28px;
width:240px; line-height:16px;
}
a.tooltip:hover span{
display:inline; position:absolute; color:#111;
border:1px solid #DCA; background:#fffAF0;}
.callout {z-index:20;position:absolute;top:30px;border:0;left:-12px;}
/*CSS3 extras*/
a.tooltip span
{
border-radius:4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-moz-box-shadow: 5px 5px 8px #CCC;
-webkit-box-shadow: 5px 5px 8px #CCC;
box-shadow: 5px 5px 8px #CCC;
}
</style>
<a href="#" class="tooltip">
Tooltip
<span>
<img class="callout" src="http://www.menucool.com/tooltip/src/callout.gif" />
<strong>Most Light-weight Tooltip</strong><br />
This is the easy-to-use Tooltip driven purely by CSS.
</span>
</a>
<a href="#" class="tooltip">
<img src="http://www.menucool.com/img/demo/css-tooltip-image.gif" />
<span>
<img class="callout" src="http://www.menucool.com/tooltip/src/callout.gif" />
<strong>CSS only Tooltip</strong><br />
<img src="http://www.menucool.com/img/demo/css-tooltip-image.gif" style="float:right;" />
Pure CSS popup tooltips with clean semantic XHTML.
</span>
</a>
댓글목록
등록된 댓글이 없습니다.