国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 開(kāi)發(fā) > CSS > 正文

div+css實(shí)現(xiàn)仿豬八戒首頁(yè)導(dǎo)航菜單效果

2024-07-11 08:29:47
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

本文實(shí)例講述了div+css實(shí)現(xiàn)仿豬八戒首頁(yè)導(dǎo)航菜單效果。。具體如下:

這是一款仿豬八戒2010年首頁(yè)的網(wǎng)頁(yè)導(dǎo)航菜單,藍(lán)色風(fēng)格,非常漂亮大氣、簡(jiǎn)潔專(zhuān)業(yè),在此推薦給大家。菜單上有一個(gè)標(biāo)記,指引當(dāng)前的位置,也是本菜單的亮點(diǎn)。用CSS究竟是如何實(shí)現(xiàn)的呢?那么就請(qǐng)一起看代碼吧。

先來(lái)看看運(yùn)行效果截圖:

在線(xiàn)演示地址如下:

http://demo.Vevb.com/js/2015/div-css-fzbj-web-menu-style-codes/

具體代碼如下:

復(fù)制代碼
代碼如下:<!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>仿2010豬八戒首頁(yè)導(dǎo)航菜單</title>
<style type="text/css">
<!--
body{font:12px 微軟雅黑,Verdana,Tahoma;}
*{padding:0px;margin:0px;}
* li{list-style:none;}
a{text-decoration:none;color:#20537A;}
a:hover{text-decoration:underline;}
.clearfix:after {
content: "/0020";
display: block;
height: 0;
clear: both;
}
.clearfix {
_zoom: 1;
}
*+html .clearfix {
overflow:auto;
}
.menu_navcc{width:970px; margin:0 auto;}
.menu_nav{width:970px;height:48px;background:url(images/nav_bg.gif) repeat-x;float:left;margin-top:18px;}
.menu_nav .nav_content{padding-left:25px;background:url(images/nav_l_bg.gif) no-repeat;float:left;}
.menu_nav .nav_content li{width:88px;height:48px;padding-left:15px;padding-right:13px;background:url(images/nav_li_right.gif) no-repeat right center;float:left;line-height:48px;text-align:center;font-size:14px;font-weight:bold;}
.menu_nav .nav_content li a{color:#fff;width:88px;height:48px;display:block;}
.menu_nav .nav_content li.current{line-height:37px;}
.menu_nav .nav_content li em{background:url(images/bid_new.gif) no-repeat;width:35px;height:21px;display:inline-block;position:absolute;top:-20px;left:40px;}
.menu_nav .nav_content li.current a,.menu_nav .nav_content li a:hover{width:88px;height:37px;background:url(images/nav_li_current.gif) no-repeat;display:block;color:#fff;}
.menu_nav .nav_content li a:hover{background:url(images/nav_li_hover.gif) no-repeat;line-height:37px;text-decoration:none;}
.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 style="text-align:center">
<div style="height:100px;"></div>
<div style="clear:both"></div>
<!--nav,start-->
<div class="menu_navcc">
<div class="menu_nav clearfix">
<ul class="nav_content">
<li class="current"><a href="#" title="首頁(yè)"><span>網(wǎng)站首頁(yè)</span></a></li>
<li><a href="#" title="廣告代碼"><span>廣告代碼</span></a></li>
<li><a href="#" title="CSS教程"><span>CSS教程</span></a></li>
<li style="position:relative;"><a href="#" title="導(dǎo)航菜單"><span>導(dǎo)航菜單</span></a><em></em></li>
<li><a href="#" title="源碼素材"><span>源碼素材</span></a></li>
<li><a href="#" title="常用代碼"><span>常用代碼</span></a></li>
</ul>
<div class="menu_nav_right">
</div>
</div>
</div>
<!--nav,end-->
<p></p>
<p></p>
</body>
</html>
發(fā)表評(píng)論 共有條評(píng)論
用戶(hù)名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 马鞍山市| 元谋县| 增城市| 奈曼旗| 永昌县| 渭源县| 蕲春县| 丘北县| 阜新市| 威宁| 资兴市| 什邡市| 桦甸市| 孝昌县| 西乌珠穆沁旗| 诏安县| 新田县| 常山县| 阳信县| 蕲春县| 江源县| 台南县| 论坛| 容城县| 临湘市| 舟山市| 加查县| 威远县| 五莲县| 武安市| 应城市| 中超| 卢氏县| 囊谦县| 来安县| 会宁县| 文化| 沾化县| 武安市| 长沙市| 三门县|