温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

如何利用CSS实现紫罗兰风格导航条效果

发布时间:2021-08-05 09:36:33 来源:亿速云 阅读:142 作者:chen 栏目:web开发

本篇内容主要讲解“如何利用CSS实现紫罗兰风格导航条效果”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“如何利用CSS实现紫罗兰风格导航条效果”吧!

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

运行效果截图如下:

如何利用CSS实现紫罗兰风格导航条效果

在线演示地址如下:

http://demo.jb51.net/js/2015/css-zll-style-nav-codes/

具体代码如下:

代码如下:

<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实现紫罗兰风格导航条效果”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

css
AI