純CSS實(shí)現(xiàn)的紫羅蘭風(fēng)格導(dǎo)航條效果代碼
發(fā)布時(shí)間:2015-10-08 16:22:11 作者:佚名
我要評論

這篇文章主要為大家介紹了純CSS實(shí)現(xiàn)的紫羅蘭風(fēng)格導(dǎo)航條效果代碼,通過簡單的css樣式控制實(shí)現(xiàn)響應(yīng)鼠標(biāo)滑過動(dòng)態(tài)改變背景圖的經(jīng)典導(dǎo)航效果,非常簡單實(shí)用,需要的朋友可以參考下
本文實(shí)例講述了純CSS實(shí)現(xiàn)的紫羅蘭風(fēng)格導(dǎo)航條效果。分享給大家供大家參考。具體如下:
這是一款紫羅蘭風(fēng)格CSS導(dǎo)航條,相信你會(huì)喜歡,不信就點(diǎn)運(yùn)行看一下吧,很經(jīng)典的CSS菜單。
運(yùn)行效果截圖如下:
在線演示地址如下:
http://demo.jb51.net/js/2015/css-zll-style-nav-codes/
具體代碼如下:
復(fù)制代碼
代碼如下:<title>CSS導(dǎo)航條</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>網(wǎng)站首頁</span></a></li>
<li><a href="#"><span>網(wǎng)頁特效</span></a></li>
<li id="current"><a href="#"><span>最新更新</span></a></li>
<li><a href="#"><span>留言板</span></a></li>
<li><a href="#"><span>廣告聯(lián)系</span></a></li>
</ul>
<div class="clear"></div>
</div>
<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>網(wǎng)站首頁</span></a></li>
<li><a href="#"><span>網(wǎng)頁特效</span></a></li>
<li id="current"><a href="#"><span>最新更新</span></a></li>
<li><a href="#"><span>留言板</span></a></li>
<li><a href="#"><span>廣告聯(lián)系</span></a></li>
</ul>
<div class="clear"></div>
</div>
希望本文所述對大家的CSS網(wǎng)頁設(shè)計(jì)有所幫助。
相關(guān)文章
DIV+CSS實(shí)現(xiàn)仿京東商城導(dǎo)航條效果
這篇文章主要為大家介紹了DIV+CSS實(shí)現(xiàn)仿京東商城導(dǎo)航條效果,涉及頁面div+css布局涉及結(jié)合onmouseout鼠標(biāo)事件動(dòng)態(tài)切換的相關(guān)技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考2015-09-23- 本節(jié)主要介紹了用CSS手寫導(dǎo)航條,此導(dǎo)航條沒有任何圖片,在文末可以看到效果圖2014-07-23
css3 給頁面加個(gè)半圓形導(dǎo)航條主要利用旋轉(zhuǎn)和傾斜樣式
利用了css3的 rolate(旋轉(zhuǎn)) 和 skew (傾斜)樣式給頁面加個(gè)半圓形導(dǎo)航條,具體的實(shí)現(xiàn)示例如下,感興趣的朋友不要錯(cuò)過2014-02-10- 本文介紹了使用css3制作動(dòng)感導(dǎo)航條示例,純CSS沒有使用JS,沒有圖片的導(dǎo)航條。用到了CSS3的Transition、box-shadow、linear-gradient2014-01-26
帶有css3動(dòng)畫效果的兼容多瀏覽器簡單導(dǎo)航條示例
用原生JS寫了一個(gè)簡單的導(dǎo)航,下拉菜單加了一點(diǎn)CSS3動(dòng)畫效果,兼容IE6-10、FIREFOX、CHROME、OPERA、SAFARI等主流瀏覽器2014-01-26純CSS3實(shí)現(xiàn)的超酷頁腳導(dǎo)航效果在頁角處固定顯示一個(gè)導(dǎo)航條
CSS3實(shí)現(xiàn)的超酷頁腳導(dǎo)航效果,在頁角處固定顯示一個(gè)導(dǎo)航條,視覺效果超牛2013-08-26純css實(shí)現(xiàn)的中間用斜線分開的菜單導(dǎo)航條
純css實(shí)現(xiàn)的中間用斜線分開的菜單導(dǎo)航條,喜歡的朋友可以拿去用。2011-01-05