<style type="text/css">ul,li{list-style-type: none;}#nav li{ float:left; margin-left:30px;}#nav span{display:none;}#nav a{font-size:12px;font-weight: bold;text-decoration: none; display:block;}#nav a:hover{ top:1px; left:1px; position:relative;}#nav a:hover span{ display:block; top:-3px; left:-3px; position:absolute; color:FF3300;}</style>
<style type="text/css">
ul,li{list-style-type: none;}
#nav li{ float:left; margin-left:30px;}
#nav span{display:none;}
#nav a{font-size:12px;font-weight: bold;text-decoration: none; display:block;}
#nav a:hover{ top:1px; left:1px; position:relative;}
#nav a:hover span{ display:block; top:-3px; left:-3px; position:absolute; color:FF3300;}
</style> …… <div id="nav">
<ul>
<li><a href="http://wuyisky.cnblogs.com/">菜鸟吧<span>菜鸟吧</span></a></li>
</ul>
</div>
菜鸟导航样式
本文介绍了一种用于网页导航栏的CSS样式实现方法,通过定义特定的ID选择器来控制导航元素的显示效果,包括鼠标悬停时的样式变化。
1万+

被折叠的 条评论
为什么被折叠?



