怎么用DIV+CSS實(shí)現(xiàn)綠色水平一級(jí)菜單-創(chuàng)新互聯(lián)

這篇文章主要介紹“怎么用DIV+CSS實(shí)現(xiàn)綠色水平一級(jí)菜單”,在日常操作中,相信很多人在怎么用DIV+CSS實(shí)現(xiàn)綠色水平一級(jí)菜單問(wèn)題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”怎么用DIV+CSS實(shí)現(xiàn)綠色水平一級(jí)菜單”的疑惑有所幫助!接下來(lái),請(qǐng)跟著小編一起來(lái)學(xué)習(xí)吧!

成都創(chuàng)新互聯(lián)公司是網(wǎng)站建設(shè)專家,致力于互聯(lián)網(wǎng)品牌建設(shè)與網(wǎng)絡(luò)營(yíng)銷,專業(yè)領(lǐng)域包括網(wǎng)站建設(shè)、成都做網(wǎng)站、電商網(wǎng)站制作開(kāi)發(fā)、成都微信小程序、微信營(yíng)銷、系統(tǒng)平臺(tái)開(kāi)發(fā),與其他網(wǎng)站設(shè)計(jì)及系統(tǒng)開(kāi)發(fā)公司不同,我們的整合解決方案結(jié)合了恒基網(wǎng)絡(luò)品牌建設(shè)經(jīng)驗(yàn)和互聯(lián)網(wǎng)整合營(yíng)銷的理念,并將策略和執(zhí)行緊密結(jié)合,且不斷評(píng)估并優(yōu)化我們的方案,為客戶提供全方位的互聯(lián)網(wǎng)品牌整合方案!

這是一款基于DIV+CSS實(shí)現(xiàn)的綠色水平網(wǎng)站菜單,相信是你喜歡的一種CSS菜單,綠色風(fēng)格,用到了幾張背景圖片,大家順著路徑把圖片下載下來(lái)吧。這款菜單整體感覺(jué)效果不錯(cuò),兼容性又好,不管是用在你的網(wǎng)站或是學(xué)習(xí)研究CSS,都是不錯(cuò)的選擇。


運(yùn)行效果截圖如下:

怎么用DIV+CSS實(shí)現(xiàn)綠色水平一級(jí)菜單

在線演示地址如下:

http://demo.jb51.net/js/2015/div-css-green-line-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>綠色水平CSS菜單</title>
<style>
body{font-size:12px;font-family:Arial,Helvetica,'宋體',sans-serif;color:#333;background:#fff;margin:0;}
a:link{color:#0041D9;text-decoration:none;outline:none;}
a:visited{color:#0041D9;text-decoration:none;outline:none;}
a:hover{color:#f60;text-decoration:underline;outline:none;}
a:active{color:#0041D9;text-decoration:none;outline:none;}
#header{position:relative;width:100%;}
div.bar{position:relative;height:42px;background:url(images/mainmenu.bg14_6x42.gif) repeat-x;}
#header div.tabbar{width:900px;}
#header .tabbar div.tabs{left:266px;position:absolute;top:41px;font-size:14px;font-weight:bold;}
#header .tabbar .tabs a{float:left;width:80px;height:24px;line-height:24px;padding-top:7px;text-align:center;color:#000;font-weight:lighter;font-size:14px;background:transparent;}
#header .tabbar .tabs a:hover{background:#fff url(images/nav_hover_80x31.gif) no-repeat;text-decoration:none;margin-left:-1px;padding-left:1px;}
#header .tabbar .tabs a.actived{background:#fff url(images/nav_80x31.gif) no-repeat;font-weight:bold;color:#fff;margin-left:-1px;padding-left:1px;}
#header .tabbar .tabs a.actived:hover{background:#fff url(images/nav_80x31.gif) no-repeat;font-weight:bold;color:#fff;text-decoration:underline;}
#header .tabbar .bg{position:absolute;left:266px;top:41px;width:560px;height:31px;z-index:-1;}
#header .tabbar .bg .nw{float:left;width:80px;height:31px;background:transparent url(images/navleft2_80x31.gif) no-repeat;}
#header .tabbar .bg .cen{float:left;width:80px;height:31px;background:transparent url(images/navlcenter_80x31.gif) no-repeat;}
#header .tabbar .bg .ne{float:left;width:80px;height:31px;background:transparent url(images/navright_80x31.gif) no-repeat;}
#header .tabbar .float_icon{background:transparent url(images/new01_18x19.gif) no-repeat;font-size:0;height:19px;line-height:0;position:absolute;right:403px;text-indent:-999px;top:-4px;width:18px;}
#header{z-index:20;min-width:970px;}
#header div.banner{position:relative;height:72px;z-index:10;}
div.bar{height:7px;background:url(images/mainmenu.bg11_6x7.gif) repeat-x;}
</style>
</head>
<body>
<div id="header">
<div class="banner">
<div class="tabbar">
 <div class="tabs">
   <div class="float_icon">新</div>
   <a href="#" title="首 頁(yè)" class="actived" >首 頁(yè)</a>
<a href="#" title="ASP源碼">ASP源碼</a>
<a href="#" title="PHP源碼">PHP源碼</a>
<a href="#" title=".NET源碼">.NET源碼</a>
<a href="#" title="JSP源碼">JSP源碼</a>
<a href="#" title="HTM源碼">HTM源碼</a>
<a href="#" title="網(wǎng)頁(yè)菜單">網(wǎng)頁(yè)菜單</a>
</div>
 <div class="bg">
   <div class="nw"></div>
   <div class="cen"></div>
   <div class="cen"></div>
   <div class="cen"></div>
   <div class="cen"></div>
   <div class="cen"></div>
   <div class="ne"></div>
 </div>
</div>
</div>
<div class="bar"></div>
</div>
</body>
</html>

到此,關(guān)于“怎么用DIV+CSS實(shí)現(xiàn)綠色水平一級(jí)菜單”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)?lái)更多實(shí)用的文章!

網(wǎng)站標(biāo)題:怎么用DIV+CSS實(shí)現(xiàn)綠色水平一級(jí)菜單-創(chuàng)新互聯(lián)
URL分享:http://bm7419.com/article18/iihgp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供域名注冊(cè)、服務(wù)器托管、搜索引擎優(yōu)化、外貿(mào)建站、動(dòng)態(tài)網(wǎng)站、網(wǎng)頁(yè)設(shè)計(jì)公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都seo排名網(wǎng)站優(yōu)化