本文实例为大家分享了纯CSS实现多级下拉横向导航菜单代码,供大家参考,具体内容如下
先看看效果图:

实现代码:
CSS代码:
CSS Code复制内容到剪贴板- #backgroundHolder { width:750px; height:500px; padding-top:10px; margin:0 auto; }
- .nav, .nav ul { list-style-type:none; margin:0; padding:0; }
- .nav a { text-decoration:none; }
- .nav { font-family: arial, sans-serif; font-size:12px; width:650px; margin:0 auto; }
- .nav a { background:url(ulmulti3/box.gif) no-repeat rightright center; }
- .nav a.top { background:url(ulmulti3/box.gif) no-repeat rightright top; }
- .nav a.top2 { background:url(ulmulti3/box2.gif) no-repeat rightright top; }
- .nav a.bottombottom { background:url(ulmulti3/box.gif) no-repeat rightright bottombottom; }
- .rightright ul ul a { background:url(ulmulti3/box3.gif) no-repeat rightright center; }
- .rightright ul ul a.top2 { background:url(ulmulti3/box3.gif) no-repeat rightright top; }
- .rightright ul ul a.bottombottom { background:url(ulmulti3/box3.gif) no-repeat rightright bottombottom; }
- .nav a b { color:#fff; font-weight:normal; display:block; padding:5px 10px 5px 15px; }
- .nav .fly .main b { background: transparent url(ulmulti3/arrow.gif) no-repeat 117px 9px; }
- .nav .down b { background: transparent url(ulmulti3/arrow2.gif) no-repeat 115px 11px; }
- .nav .rightright ul b { text-align:rightright; }
- .nav .rightright ul ul b { padding: 5px 15px 5px 10px; }
- .nav .rightright ul .main b { background: transparent url(ulmulti3/arrow3.gif) no-repeat 15px 9px; text-align:rightright; }
- .nav .rightright ul ul .main b { background: transparent url(ulmulti3/arrow3.gif) no-repeat 5px 9px; text-align:rightright; }
- .nav ul ul { top:-24px; }
- .nav ul ul ul { top:-25px; }
- .nav ul.two { top:-40px; }
- .nav .drop, .nav a { width:130px; }
- .nav ul li { max-width:130px; }
- .nav ul ul { left:130px; }
- .nav li.rightright ul ul { left:auto; rightright:120px; }
- .nav li.rightright ul ul ul { left:auto; rightright:130px; }
- .nav a { margin-right:-129px; }
- .nav li { float:left; }
- .nav ul { float:left; position:relative; z-index:20; }
- .nav ul li { clear:left; }
- .nav a { position:relative; display:block; }
- .nav a.main { float:left; margin-top:10000px; }
- .nav .drop, .nav .fly { margin-top:-10000px; }
- .nav ul { margin-bottom:-5000px; }
- .nav a:hover, .nav a:focus, .nav a:active { margin-right:0; z-index:10; outline:0; }
- .nav a:hover b, .nav a:focus b, .nav a:active b { color:#000; cursor:pointer; }
- .nav ul:hover, .nav ul ul:hover { clear:left; }
-
热门相关搜索路由器设置 木托盘 宝塔面板 儿童python教程 心情低落 朋友圈 vim 双一流学科 专升本 我的学校 日记学校 西点培训学校 汽修学校 情书 化妆学校 塔沟武校 异形模板 西南大学排名 最精辟人生短句 6步教你追回被骗的钱 南昌大学排名 清朝十二帝 北京印刷学院排名 北方工业大学排名 北京航空航天大学排名 首都经济贸易大学排名 中国传媒大学排名 首都师范大学排名 中国地质大学(北京)排名 北京信息科技大学排名 中央民族大学排名 北京舞蹈学院排名 北京电影学院排名 中国戏曲学院排名 河北政法职业学院排名 河北经贸大学排名 天津中德应用技术大学排名 天津医学高等专科学校排名 天津美术学院排名 天津音乐学院排名 天津工业大学排名 北京工业大学耿丹学院排名 北京警察学院排名 天津科技大学排名 北京邮电大学(宏福校区)排名 北京网络职业学院排名 北京大学医学部排名 河北科技大学排名 河北地质大学排名 河北体育学院排名


