A5下载文章资讯

分类分类

纯CSS实现的紫罗兰风格导航条效果代码

2015-10-10 16:21作者:yezheng

 本文实例讲述了纯CSS实现的紫罗兰风格导航条效果。分享给大家供大家参考。具体如下:

这是一款紫罗兰风格CSS导航条,相信你会喜欢,不信就点运行看一下吧,很经典的CSS菜单。

具体代码如下:

<title>CSS导航条</title>

<style type="text/css">

body {margin:0;padding:0;font: bold 11px/1.5em Arial;}

img {border: none;}

#roScripts_m1 {float:left;width:100%;background:#F6ECFD;

font-size:96%;line-height:1.5;border-bottom:3px solid #CD86F5;}

#roScripts_m1 ul {margin:0;padding:100px 10px 0 25%;list-style:none;}

#roScripts_m1 li {display:inline;margin:0;padding:0;}

#roScripts_m1 a {float:left;background:url(images/left3.gif) no-repeat left top;

margin:0;padding:0 0 0 4px;text-decoration:none;}

#roScripts_m1 a span {float:left;display:block;background:url(images/right3.gif)

no-repeat right top;padding:5px 25px 4px 25px;color:#fff;}

#roScripts_m1 a span {float:none;}

#roScripts_m1 a:hover span {color:#591333;}

#roScripts_m1 a:hover {background-position:0% -42px;}

#roScripts_m1 a:hover span {background-position:100% -42px;}

#roScripts_m1 #current a {background-position:0% -42px;}

#roScripts_m1 #current a span {background-position:100% -42px;color:#591333}

.clear {clear:left}

</style>

<div id="roScripts_m1">

<ul>

<li><a href="#"><span>网站首页</span></a></li>

<li><a href="#"><span>网页特效</span></a></li>

<li id="current"><a href="#"><span>最新更新</span></a></li>

<li><a href="#"><span>留言板</span></a></li>

<li><a href="#"><span>广告联系</span></a></li>

</ul>

<div class="clear"></div>

</div>

希望本文所述对大家的CSS网页设计有所帮助。

展开全部

相关

说两句网友评论
    我要跟贴
    取消