当前位置导航:炫浪网>>网络学院>>网页制作>>HTML与CSS教程

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<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="bg_image.jpg?http://www.xvna.com" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="bg_image.jpg?http://www.xvna.com" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="bg_image.jpg?http://www.xvna.com" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="bg_image.jpg?http://www.xvna.com" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="bg_image.jpg?http://www.xvna.com" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="bg_image.jpg?http://www.xvna.com" width="350" /></SPAN></a></li>
</ul>
</div>

</body>
</html>

炫 浪 学 院
相关内容
赞助商链接