电脑技术学习

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

dn001

<!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="bg_image.jpg" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="bg_image.jpg" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="bg_image.jpg" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="bg_image.jpg" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="bg_image.jpg" width="350" /></SPAN></a></li>
<li><a href="#">Document<SPAN><img src="bg_image.jpg" width="350" /></SPAN></a></li>
</ul>
</div>

</body>
</html>