這篇文章主要介紹“怎么用div+css實現(xiàn)vista風(fēng)格導(dǎo)航菜單效果”,在日常操作中,相信很多人在怎么用div+css實現(xiàn)vista風(fēng)格導(dǎo)航菜單效果問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”怎么用div+css實現(xiàn)vista風(fēng)格導(dǎo)航菜單效果”的疑惑有所幫助!接下來,請跟著小編一起來學(xué)習(xí)吧!
這是一款藍色vista風(fēng)格css導(dǎo)航菜單,第一眼看上去很大氣的菜單,采用那種比較艷但不刺眼的藍色作為菜單背景色,另外加入了一些鼠標(biāo)效果,在鼠標(biāo)滑上菜單的時候,對應(yīng)菜單項突出顯示,背景發(fā)生變化,CSS代碼還可有再優(yōu)化的空間,希望大家喜歡。
運行效果如下圖所示:
在線演示地址如下:
http://demo.jb51.net/js/2015/div-css-vista-style-blue-nav-menu-codes/
具體代碼如下:
代碼如下:
<!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>藍色vista風(fēng)格css導(dǎo)航菜單</title>
<style type="text/css">
<!--
body{font:12px Arial,Verdana,Tahoma,"宋體";}
*{padding:0px;margin:0px;}
* li{list-style:none;}
a{text-decoration:none;color:#20557A;}
a:hover{text-decoration:underline;}
.menu_navcc{width:970px; margin:0 auto;}
.menu_nav{width:970px;height:55px;background:url(images/nav_bg.gif) repeat-x top;float:left;}
.menu_nav .nav_content{padding-left:4px;background:url(images/nav_l_bg.gif) no-repeat left top;float:left;}
.menu_nav .nav_content li{width:114px;height:55px;padding-left:10px;padding-right:10px;background:url(images/nav_li_right.gif) no-repeat right top;float:left;line-height:55px;text-align:center;font-size:14px;font-weight:bold;}
.menu_nav .nav_content li a{color:#fff;width:114px;height:55px;display:block;}
.menu_nav .nav_content li.current{line-height:55px;}
.menu_nav .nav_content li.current a,.menu_nav .nav_content li a:hover{width:114px;height:55px;background:url(images/nav_li_current.gif) no-repeat bottom;display:block;color:#000;}
.menu_nav_right{padding-right:20px;background:url(images/nav_r_bg.gif) no-repeat right top;float:right;margin-left:50px;padding-top:13px;height:23px;padding-bottom:12px;}
p{
margin-bottom:15px}
-->
</style>
</head>
<body >
<div ></div>
<div ></div>
<!--nav,start-->
<div class="menu_navcc">
<div class="menu_nav">
<ul class="nav_content">
<li class="current"><a href="#"><span>首頁</span></a></li>
<li><a href="#"><span>廣告代碼</span></a></li>
<li><a href="#"><span>CSS教程</span></a></li>
<li><a href="#"><span>導(dǎo)航菜單</span></a></li>
<li><a href="#"><span>源碼下載</span></a></li>
<li><a href="#"><span>網(wǎng)頁特效</span></a></li>
</ul>
<div class="menu_nav_right"></div>
</div>
</div>
<!--nav,end-->
</body>
</html>
到此,關(guān)于“怎么用div+css實現(xiàn)vista風(fēng)格導(dǎo)航菜單效果”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>
網(wǎng)站標(biāo)題:怎么用div+css實現(xiàn)vista風(fēng)格導(dǎo)航菜單效果-創(chuàng)新互聯(lián)
文章分享:http://www.rwnh.cn/article38/doespp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)網(wǎng)站建設(shè)、靜態(tài)網(wǎng)站、微信小程序、網(wǎng)站設(shè)計、網(wǎng)站導(dǎo)航、網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容