CSS耍宝一- []
我的学习日志,从今天开始,每日一宝,请各位监督。下面来第一宝,从jscode搞来的代码和图片链接:-)
<!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>用CSS实现的一个字符显示效果</title>
<style>
body{ font-size:12px; line-height:22px;}
a{text-decoration:none;color:#ff0;font-weight:bold;text-align:center;line-height:100px;font-size:18px;}
#info span{position:absolute;width:523px;height:275px;top:115px; left:10px;background: url(http://www.jscode.cn/Uploadfile/200682485616973.GIF); visibility: hidden;}
a:link,a:visited{cursor: default;}
a:active,a:hover{cursor:auto;}
#hi{visibility: hidden; height:1px; overflow:hidden;}
#w01 a:hover span,#w02 a:active span{background-position: 0px 0px; visibility: visible;}
#w02 a:hover span,#w03 a:active span{background-position: 0px -275px; visibility: visible;}
#w03 a:hover span,#w04 a:active span{background-position: 0px -550px;visibility: visible; }
#w04 a:hover span,#w05 a:active span{background-position: 0px -825px; visibility: visible;}
#w05 a:hover span,#w06 a:active span{background-position: 0px -1100px; visibility: visible;}
#w06 a:hover span,#w07 a:active span{background-position: 0px -1375px; visibility: visible;}
#w07 a:hover span,#w08 a:active span{background-position: 0px -1650px; visibility: visible;}
#w08 a:hover span,#w09 a:active span{background-position: 0px -1925px; visibility: visible;}
#w09 a:hover span,#w10 a:active span{background-position: 0px -2200px; visibility: visible;}
#w10 a:hover span,#w11 a:active span{background-position: 0px -2475px; visibility: visible;}
#w11 a:hover span,#w12 a:active span{background-position: 0px -2750px; visibility: visible;}
#w12 a:hover span,#w13 a:active span{background-position: 0px -3025px;visibility: visible; }
#info a{width:44px; height:100px;display:block; background:#0cf; float:left;}
</style>
</head>
<body>
<div id="info">
<div id="w01"><a href="http://www.jscode.cn" target="_blank">鼠<span></span></a></div>
<div id="w02"><a href="http://www.jscode.cn" target="_blank">标<span></span></a></div>
<div id="w03"><a href="http://www.jscode.cn" target="_blank">上<span></span></a></div>
<div id="w04"><a href="http://www.jscode.cn" target="_blank">来<span></span></a></div>
<div id="w05"><a href="http://www.jscode.cn" target="_blank">从<span></span></a></div>
<div id="w06"><a href="http://www.jscode.cn" target="_blank">左<span></span></a></div>
<div id="w07"><a href="http://www.jscode.cn" target="_blank">到<span></span></a></div>
<div id="w08"><a href="http://www.jscode.cn" target="_blank">右<span></span></a></div>
<div id="w09"><a href="http://www.jscode.cn" target="_blank">来<span></span></a></div>
<div id="w10"><a href="http://www.jscode.cn" target="_blank">回<span></span></a></div>
<div id="w11"><a href="http://www.jscode.cn" target="_blank">划<span></span></a></div>
<div id="w12"><a href="http://www.jscode.cn" target="_blank">吧<span></span></a></div>
</div>
<div id="hi"><img src="http://www.jscode.cn/Uploadfile/200682485616973.GIF" alt="" /></div>
</body>
</html>
发表评论
| 姓名: | |
| E-mail: | |
| 地址: | |


评论
的确BT,一般也派不上用场,如果用在某些特定场合,我想也是很能出彩的。
BT的用法~不过挺有意思的~支持老大~哈哈~