亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

純CSS+XHTML實現(xiàn)的二級導(dǎo)航菜單效果

  發(fā)布時間:2015-09-25 09:50:20   作者:佚名   我要評論
這篇文章主要為大家介紹了純CSS+XHTML實現(xiàn)的二級導(dǎo)航菜單效果,通過簡單的鼠標(biāo)事件操作頁面元素樣式變換實現(xiàn)二級導(dǎo)航菜單的功能,非常簡單實用,需要的朋友可以參考下

本文實例講述了純CSS+XHTML實現(xiàn)的二級導(dǎo)航菜單效果。分享給大家供大家參考。具體如下:

這是一款簡約、兼容好的XHTML+css二級導(dǎo)航菜單

運行效果截圖如下:

在線演示地址如下:

http://demo.jb51.net/js/2015/css-xhtml-2l-menu-nav-demo-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=utf-8" />
<title>純CSS+XHTML下拉菜單</title>
<style type="text/css">
<!--
* {
margin:0;
padding:0;
}
body {
font:12px Verdana, Geneva, sans-serif #333;
line-height:1.5;
}
ul li {
list-style:none;
}
.menu {
width:660px;
margin:20px auto;
}
.menu li {
display:inline;
float:left;
margin:0 5px;
background:#f2f2f2;
border:1px #39c solid;
text-align:center;
font-size:14px;
font-weight:700;
line-height:30px;
cursor:hand;
}
.tuckUp {
display:inline;
width:120px;
height:30px;
overflow:hidden;
background:#f2f2f2;
}
.pullDown{
display:inline;
height:auto;
}
.item a:link, .item a:visited {
display:inline;
float:left;
width:110px;
background:#ccc;
text-align:center;
color:#444;
font-size:12px;
font-weight:normal;
text-decoration:none;
line-height:25px;
margin:0 5px 5px 5px;
}
.item a:hover {
display:inline;
float:left;
background:#39c;
width:100px;
color:#FFF;
text-decoration:none;
text-align:center;
font-size:12px;
font-weight:700;
font-weight:normal;
line-height:25px;
padding:0 0 0 10px;
margin:0 5px 5px 5px;
}
//
-->
</style>
</head>
<body>
<ul class="menu">
<li class="tuckUp" onmousemove="this.className='pullDown'" onmouseout="this.className='tuckUp'">精品特效
<div class="item"><a href="#">網(wǎng)頁特效</a></a>
<a href="#">層和布局</a></a>
<a href="#">表單按鈕</a>
</div>
</li>
<li class="tuckUp" onmouseover="this.className='pUllDown'" onmouseout="this.className='tuckUp'">菜單導(dǎo)航
<div class="item"><a href="#">菜單導(dǎo)航</a>
<a href="#">CSS菜單</a>
<a href="#">JQUERY菜單</a>
</div>
</li>
<li class="tuckUp" onmouseover="this.className='pullDown'" onmouseout="this.className='tuckUp'">源代碼
<div class="item" ><a href="#">源碼下載</a>
<a href="#">ASP分類</a>
<a href="#">PHP分類</a>
<a href="#">ASP.NET</a>
</div>
</li>
<li class="tuckUp" onmouseover="this.className='pUllDown'" onmouseout="this.className='tuckUp'">更新匯總
<div class="item"><a href="#">最新更新</a>
<a href="#">最新更新</a>
<a href="#">網(wǎng)站首頁</a>
</div>
</li>
<li class="tuckUp" onmouseover="this.className='pUllDown'" onmouseout="this.className='tuckUp'">腳本下載
<div class="item"><a href="#">腳本資源</a>
<a href="#">AJAX</a>
<a href="#">JQUERY</a>
<a href="#">EXTJS</a>
</div>
</li>
</ul>
</body>
</html>

希望本文所述對大家的CSS網(wǎng)頁設(shè)計有所幫助。

相關(guān)文章

最新評論