纯css制作多级导航菜单弹出效果,当用户的鼠标经过菜单时弹出下拉多级菜单显示,可根据需求自定义级数。
<!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" /> <meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren"> <meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。"> <TITLE>CSS设计导航菜单弹出多级下拉菜单特效_武鸣人</TITLE> <style type="text/css"> <!-- body { font: 12px/1.6em Tahoma,Verdana; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 16.8px; } #nav_wuming { Z-INDEX: 500; PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 27px; LIST-STYLE-IMAGE: none; PADDING-TOP: 0px } #nav_wuming LI.top { DISPLAY: block; FLOAT: left; HEIGHT: 27px; } #nav_wuming LI A.top_wuming_ren { PADDING-BOTTOM: 0px; LINE-HEIGHT: 27px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; DISPLAY: block; FLOAT: left; HEIGHT: 27px; FONT-SIZE: 12px; CURSOR: pointer; FONT-WEIGHT: bold; TEXT-DECORATION: none; PADDING-TOP: 0px } #nav_wuming LI A.top_wuming_ren SPAN { PADDING-BOTTOM: 0px; WIDTH: 80px; DISPLAY: block; text-align:center; FLOAT: left; HEIGHT: 27px; PADDING-TOP: 0px } #nav_wuming LI A.top_wuming_ren SPAN.down { PADDING-BOTTOM: 0px; WIDTH: 80px; DISPLAY: block; text-align:center; BACKGROUND: url(/img/20240423_www_wuming_ren_44.gif) no-repeat right; FLOAT: left; HEIGHT: 27px; PADDING-TOP: 0px } #nav_wuming LI:hover A.top_wuming_ren { background-color:#548bcf; color:#fff2ee; } #nav_wuming LI:hover A.top_wuming_ren SPAN { background-color:#548bcf; color:#fff2ee; } #nav_wuming LI:hover A.top_wuming_ren SPAN.down { background-color:#548bcf; color:#fff2ee;BACKGROUND: url(/img/20240423_www_wuming_ren_45.gif) no-repeat right; } #nav_wuming LI:hover { Z-INDEX: 200; POSITION: relative } #nav_wuming LI:hover UL.sub_wuming_ren { Z-INDEX: 270; BORDER-BOTTOM: #ddd 1px solid; BORDER-LEFT: #ddd 1px solid; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 150px; PADDING-RIGHT: 0px; WHITE-SPACE: nowrap; BACKGROUND: #e1ecf6; HEIGHT: auto; BORDER-TOP: #ddd 1px solid; TOP: 27px; BORDER-RIGHT: #ddd 1px solid; PADDING-TOP: 0px; LEFT: 1px } #nav_wuming LI:hover UL.sub_wuming_ren LI { POSITION: relative; WIDTH: 150px; DISPLAY: block; FLOAT: left; HEIGHT: 19px; FONT-WEIGHT: normal } #nav_wuming LI:hover UL.sub_wuming_ren LI A { BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; LINE-HEIGHT: 19px; TEXT-INDENT: 5px; WIDTH: 150px; DISPLAY: block; HEIGHT: 19px; COLOR: #000; FONT-SIZE: 12px; BORDER-TOP: 0px; BORDER-RIGHT: 0px; TEXT-DECORATION: none } #nav_wuming LI UL.sub_wuming_ren LI A.fly { BACKGROUND: url(/img/20240423_www_wuming_ren_46.gif) #e1ecf6 no-repeat left center } #nav_wuming LI:hover UL.sub_wuming_ren LI A:hover { BACKGROUND: url(/img/20240423_www_wuming_ren_47.gif) #548bcf repeat-x center center; COLOR: #fff; } #nav_wuming LI:hover UL.sub_wuming_ren LI A.fly:hover { BACKGROUND: url(/img/20240423_www_wuming_ren_48.gif) #548bcf no-repeat left center; COLOR: #fff } #nav_wuming LI:hover LI:hover UL { Z-INDEX: 400; BORDER-BOTTOM: #ddd 1px solid; BORDER-LEFT: #ddd 1px solid; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 150px; PADDING-RIGHT: 0px; WHITE-SPACE: nowrap; BACKGROUND: #e1ecf6; HEIGHT: auto; BORDER-TOP: #ddd 1px solid; TOP: -1px; BORDER-RIGHT: #ddd 1px solid; PADDING-TOP: 0px; LEFT: 144px } #nav_wuming LI:hover LI:hover LI:hover UL { Z-INDEX: 400; BORDER-BOTTOM: #ddd 1px solid; BORDER-LEFT: #ddd 1px solid; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 150px; PADDING-RIGHT: 0px; WHITE-SPACE: nowrap; BACKGROUND: #e1ecf6; HEIGHT: auto; BORDER-TOP: #ddd 1px solid; TOP: -1px; BORDER-RIGHT: #ddd 1px solid; PADDING-TOP: 0px; LEFT: 144px } #nav_wuming LI:hover LI:hover LI:hover LI:hover UL { Z-INDEX: 400; BORDER-BOTTOM: #ddd 1px solid; BORDER-LEFT: #ddd 1px solid; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 150px; PADDING-RIGHT: 0px; WHITE-SPACE: nowrap; BACKGROUND: #e1ecf6; HEIGHT: auto; BORDER-TOP: #ddd 1px solid; TOP: -1px; BORDER-RIGHT: #ddd 1px solid; PADDING-TOP: 0px; LEFT: 144px } #nav_wuming LI:hover LI:hover LI:hover LI:hover LI:hover UL { Z-INDEX: 400; BORDER-BOTTOM: #ddd 1px solid; BORDER-LEFT: #ddd 1px solid; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 150px; PADDING-RIGHT: 0px; WHITE-SPACE: nowrap; BACKGROUND: #e1ecf6; HEIGHT: auto; BORDER-TOP: #ddd 1px solid; TOP: -1px; BORDER-RIGHT: #ddd 1px solid; PADDING-TOP: 0px; LEFT: 144px } #nav_wuming UL { POSITION: absolute; PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; TOP: -9999px; LIST-STYLE-IMAGE: none; PADDING-TOP: 0px; LEFT: -9999px } #nav_wuming LI:hover UL UL { POSITION: absolute; PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; TOP: -9999px; LIST-STYLE-IMAGE: none; PADDING-TOP: 0px; LEFT: -9999px } #nav_wuming LI:hover LI:hover UL UL { POSITION: absolute; PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; TOP: -9999px; LIST-STYLE-IMAGE: none; PADDING-TOP: 0px; LEFT: -9999px } #nav_wuming LI:hover LI:hover LI:hover UL UL { POSITION: absolute; PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; TOP: -9999px; LIST-STYLE-IMAGE: none; PADDING-TOP: 0px; LEFT: -9999px } #nav_wuming LI:hover LI:hover LI:hover LI:hover UL UL { POSITION: absolute; PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; TOP: -9999px; LIST-STYLE-IMAGE: none; PADDING-TOP: 0px; LEFT: -9999px } #nav_wuming LI:hover LI:hover A.fly { BORDER-BOTTOM-COLOR: #fff; BORDER-TOP-COLOR: #fff; BACKGROUND: url(/img/20240423_www_wuming_ren_48.gif) #548bcf no-repeat left center; COLOR: #fff; BORDER-RIGHT-COLOR: #fff; BORDER-LEFT-COLOR: #fff; } #nav_wuming LI:hover LI:hover LI:hover A.fly { BORDER-BOTTOM-COLOR: #fff; BORDER-TOP-COLOR: #fff; BACKGROUND: url(/img/20240423_www_wuming_ren_48.gif) #548bcf no-repeat left center; COLOR: #fff; BORDER-RIGHT-COLOR: #fff; BORDER-LEFT-COLOR: #fff; } #nav_wuming LI:hover LI:hover LI:hover LI:hover A.fly { BORDER-BOTTOM-COLOR: #fff; BORDER-TOP-COLOR: #fff; BACKGROUND: url(/img/20240423_www_wuming_ren_48.gif) #548bcf no-repeat left center; COLOR: #fff; BORDER-RIGHT-COLOR: #fff; BORDER-LEFT-COLOR: #fff; } #nav_wuming LI:hover LI:hover LI:hover LI:hover LI:hover A.fly { BORDER-BOTTOM-COLOR: #fff; BORDER-TOP-COLOR: #fff; BACKGROUND: url(/img/20240423_www_wuming_ren_48.gif) #548bcf no-repeat left center; COLOR: #fff; BORDER-RIGHT-COLOR: #fff; BORDER-LEFT-COLOR: #fff; } #nav_wuming LI:hover LI:hover LI A.fly { BORDER-BOTTOM-COLOR: #e1ecf6; BORDER-TOP-COLOR: #e1ecf6; BACKGROUND: url(/img/20240423_www_wuming_ren_46.gif) #e1ecf6 no-repeat left center; COLOR: #000; BORDER-RIGHT-COLOR: #e1ecf6; BORDER-LEFT-COLOR: #e1ecf6 } #nav_wuming LI:hover LI:hover LI:hover LI A.fly { BORDER-BOTTOM-COLOR: #e1ecf6; BORDER-TOP-COLOR: #e1ecf6; BACKGROUND: url(/img/20240423_www_wuming_ren_46.gif) #e1ecf6 no-repeat left center; COLOR: #000; BORDER-RIGHT-COLOR: #e1ecf6; BORDER-LEFT-COLOR: #e1ecf6 } #nav_wuming LI:hover LI:hover LI:hover LI:hover LI A.fly { BORDER-BOTTOM-COLOR: #e1ecf6; BORDER-TOP-COLOR: #e1ecf6; BACKGROUND: url(/img/20240423_www_wuming_ren_46.gif) #e1ecf6 no-repeat left center; COLOR: #000; BORDER-RIGHT-COLOR: #e1ecf6; BORDER-LEFT-COLOR: #e1ecf6 } --> </style> </HEAD> <BODY> <a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr> <!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。--> <script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script> <script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script> <UL id=nav_wuming> <LI class=top><A class="top_wuming_ren" href="https://www.wuming.ren"><SPAN>武鸣首页</SPAN></A></LI> <LI class=top><A id=products class="top_wuming_ren" href="https://www.wuming.ren"><SPAN class=down>武鸣一号</SPAN></A> <UL class=sub_wuming_ren> <LI><A href="https://www.wuming.ren">武鸣人一号</A></LI> <LI><A href="https://www.wuming.ren">武鸣人二号</A></LI> <LI><A href="https://www.wuming.ren">武鸣人三号</A></LI> <LI><A href="https://www.wuming.ren">武鸣人四号</A></LI> </UL></LI> <LI class=top><A id=services class="top_wuming_ren" href="https://www.wuming.ren"><SPAN class=down>武鸣二号</SPAN></A> <UL class=sub_wuming_ren> <LI><A class=fly href="https://www.wuming.ren">武鸣人1号</A> <UL> <LI><A href="https://www.wuming.ren">1号子菜单</A></LI> <LI><A href="https://www.wuming.ren">2号子菜单</A></LI></UL></LI> <LI><A class=fly href="https://www.wuming.ren">武鸣人2号</A> <UL> <LI><A href="https://www.wuming.ren">1号子菜单</A></LI> <LI><A href="https://www.wuming.ren">2号子菜单</A></LI></UL></LI> <LI><A class=fly href="https://www.wuming.ren">武鸣人3号</A> <UL> <LI><A href="https://www.wuming.ren">1号子菜单</A></LI> <LI><A href="https://www.wuming.ren">2号子菜单</A></LI> <LI><A href="https://www.wuming.ren">3号子菜单</A></LI> <LI><A href="https://www.wuming.ren">4号子菜单</A></LI> <LI><A href="https://www.wuming.ren">5号子菜单</A></LI></UL></LI></UL></LI> <LI class=top><A id=contacts class="top_wuming_ren" href="https://www.wuming.ren"><SPAN class=down>武鸣三号</SPAN></A> <UL class=sub_wuming_ren> <LI><A href="https://www.wuming.ren">武鸣人一号</A></LI> <LI><A href="https://www.wuming.ren">武鸣人二号</A></LI></UL></LI> <LI class=top><A id=hr class="top_wuming_ren" href="https://www.wuming.ren"><SPAN class=down>武鸣四号</SPAN></A> <UL class=sub_wuming_ren> <LI><A href="https://www.wuming.ren">武鸣人一号</A></LI> <LI><A href="https://www.wuming.ren">武鸣人二号</A></LI> <LI><A href="https://www.wuming.ren">武鸣人三号</A></LI></UL></LI> <LI class=top><A id=investors class="top_wuming_ren" href="https://www.wuming.ren"><SPAN class=down>武鸣五号</SPAN></A> <UL class=sub_wuming_ren> <LI><A href="https://www.wuming.ren">武鸣人一号</A></LI> <LI><A href="https://www.wuming.ren">武鸣人二号</A></LI> <LI><A href="https://www.wuming.ren">武鸣人三号</A></LI></UL></LI> <LI class=top><A id=privacy class="top_wuming_ren" href="https://www.wuming.ren"><SPAN>武鸣六号</SPAN></A></LI></UL> </BODY> </HTML>
本文来自武鸣人网站,转载请注明出处