Hopes

Start Here..

 

Ui li三级联菜单

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>三级级联菜单</title>
<style type="text/css">
* { margin:0; padding:0; list-style:none;}
.c_subNav { width:150px; }
.c_subNav table { width:100%; border-collapse:collapse;}
.c_subNav a { text-decoration:none; color:#333;}
.c_subNav a:hover { color:#f60;}
.c_subNav ul ul { position:absolute; visibility:hidden; right:-150px; top:-1px;}
.c_subNav li { border-bottom:1px solid #ccc; position:relative; _position:static; float:left; width:100%;}
.c_subNav a.li { position:relative;}
.c_subNav li .option { display:block; line-height:15px; padding:5px 5px 5px 25px; background:no-repeat 5px 4px; cursor:pointer; font:12px Verdana; zoom:1; background:url(img/ico.gif) no-repeat;}
.c_subNav li .option:hover { color:#f60; background-color:#ffa;}
.c_subNav li .option span { display:block; padding-right:15px; background:url(img/ico.gif) no-repeat right 0;}
.c_subNav li .option:hover span { background-position:right -15px;}
.c_subNav .li:hover { z-index:2; background:transparent;}
.c_subNav .li:hover ul { visibility:visible;}
.c_subNav .li:hover ul ul { visibility:hidden;}
.c_subNav .li:hover ul { border:1px solid #ccc; border-width:1px 2px 2px 1px; width:150px; background:#fff; padding:1px;}
.c_subNav .li:hover li { border-bottom:none;}
.c_subNav .li:hover li .option { padding:2px 5px; background:transparent;}
.c_subNav .li:hover li .option:hover { background:#0096ff; color:#fff;}
.c_subNav .li:hover li .option:hover span { background-position:right -30px;}
.c_subNav .li:hover .li:hover ul { visibility:visible; left:145px; top:-2px;}
/*---图标差异---*/
.c_subNav .charges .option { background-position:4px -45px;}
.c_subNav .biz .option { background-position:4px -70px;}
.c_subNav .change .option { background-position:4px -95px;}
.c_subNav .score .option { background-position:4px -120px;}
.c_subNav .server .option { background-position:4px -145px;}
.c_subNav .edit .option { background-position:4px -170px;}
.c_subNav .sms .option { background-position:4px -195px;}
</style>
</head>
<body>
<div class="c_subNav">
<ul>
<li class="li charges">
<!--[if IE 6]><a class="li" href="#nogo"><table><tr><td><![endif]-->
<a href="#nogo" class="option"><span>菜单一级</span></a>
<ul>
<li class="li">
<!--[if IE 6]><a class="li" href="#nogo"><table><tr><td><![endif]-->
<a href="#nogo" class="option"><span>菜单一级1</span></a>
<ul>
<li class="li"><a href="#nogo" class="option">菜单一级11</a></li>
<li class="li"><a href="#nogo" class="option">菜单一级12</a></li>
</ul>
<!--[if IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="li">
<!--[if IE 6]><a class="li" href="#nogo"><table><tr><td><![endif]-->
<a href="#nogo" class="option"><span>菜单一级2</span></a>
<ul>
<li class="li"><a href="#nogo" class="option">菜单一级21</a></li>
<li class="li"><a href="#nogo" class="option">菜单一级22</a></li>
<li class="li"><a href="#nogo" class="option">菜单一级23</a></li>
</ul>
<!--[if IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="li">
<!--[if IE 6]><a class="li" href="#nogo"><table><tr><td><![endif]-->
<a href="#nogo" class="option"><span>菜单一级3</span></a>
<ul>
<li class="li"><a href="#nogo" class="option">菜单一级31</a></li>
<li class="li"><a href="#nogo" class="option">菜单一级32</a></li>
</ul>
<!--[if IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
<!--[if IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="li biz">
<!--[if IE 6]><a class="li" href="#nogo"><table><tr><td><![endif]-->
<a href="#nogo" class="option"><span>菜单二级</span></a>
<ul>
<li class="li">
<!--[if IE 6]><a class="li" href="#nogo"><table><tr><td><![endif]-->
<a href="#nogo" class="option"><span>菜单二级1</span></a>
<ul>
<li class="li"><a href="#nogo" class="option">菜单二级11</a></li>
<li class="li"><a href="#nogo" class="option">菜单二级12</a></li>
</ul>
<!--[if IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="li">
<!--[if IE 6]><a class="li" href="#nogo"><table><tr><td><![endif]-->
<a href="#nogo" class="option"><span>菜单二级2</span></a>
<ul>
<li class="li"><a href="#nogo" class="option">菜单二级21</a></li>
<li class="li"><a href="#nogo" class="option">菜单二级22</a></li>
</ul>
<!--[if IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="li">
<a href="#nogo" class="option">菜单二级3</a>
</li>
</ul>
<!--[if IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="li change">
<!--[if IE 6]><a class="li" href="#nogo"><table><tr><td><![endif]-->
<a href="#nogo" class="option"><span>菜单三级</span></a>
<ul>
<li class="li"><a href="#nogo" class="option">菜单三级1</a></li>
<li class="li"><a href="#nogo" class="option">菜单三级2</a></li>
</ul>
<!--[if IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
</div>
</body>
</html>

posted on 2012-09-10 14:26 ** 阅读(1526) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
 

导航

统计

公告

你好!

常用链接

留言簿(2)

随笔档案

文章分类

文章档案

新闻档案

相册

收藏夹

C#学习

友情链接

搜索

最新评论

阅读排行榜

评论排行榜