WEB开发网
开发学院网页设计DivCss 纯CSS实现的可包含html的title提示 阅读

纯CSS实现的可包含html的title提示

 2008-10-01 19:29:03 来源:WEB开发网   
核心提示:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmln

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<style type="text/CSS">
A {
   DISPLAY: block; CURSOR: pointer; POSITION: relative;
}
A SPAN {
   DISPLAY: block; LEFT: -9000px;TOP: -9000px; CURSOR: pointer; COLOR: #cc9900; POSITION: absolute; background-color:#CCCCCC; border:#FF9900 solid 1px;
}
A:hover {
   BACKGROUND:#fafafa; COLOR: #000
}
A:focus {
   BACKGROUND:#fafafa; COLOR: #000
}
A:active {
   BACKGROUND:#fafafa; COLOR: #000
}
A:hover SPAN {
   LEFT: 80px; TOP: 10px
}
A:focus SPAN {
   LEFT: 80px; TOP: 10px
}
A:active SPAN {
   LEFT: 80px; TOP: 10px
}
</style>
</head>

<body>
<div class="list">
<ul>
<li><a href="#">Untitled<SPAN>aaaa<br><font color="#FF0000">bbb</font><br><img src="http://www.cncms.com/bg_image.jpg" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="http://www.cncms.com/bg_image.jpg" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="http://www.cncms.com/bg_image.jpg" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="http://www.cncms.com/bg_image.jpg" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="http://www.cncms.com/bg_image.jpg" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="http://www.cncms.com/bg_image.jpg" width="350" /></SPAN></a></li>
</ul>
</div>

</body>
</html>

Tags:CSS 实现 包含

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接