| 订阅 | 在线投稿
分享
 
 
 

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

来源:互联网网民  宽屏版  评论
2008-10-02 07:47:34

<!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>

 
特别声明:以上内容(如有图片或视频亦包括在内)为网络用户发布,本站仅提供信息存储服务。
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url=http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]"> <html xmlns="[url=http://www.w3.org/1999/xhtml]http://www.w3.org/1999/xhtml[/url]"> <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>
󰈣󰈤
 
 
 
>>返回首页<<
 
 热帖排行
 
 
 
静静地坐在废墟上,四周的荒凉一望无际,忽然觉得,凄凉也很美
©2005- 王朝网络 版权所有