Team:Sheffield/aaa
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
- | <html> | + | <!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实现的多级下拉导航菜单5,可设定下拉菜单宽度mobanwang.com</title> | ||
<style type="text/css"> | <style type="text/css"> | ||
- | # | + | /* for this demo only */ |
- | + | #backgroundHolder { width:750px; height:490px; padding-top:10px; background:url(ulmulti5/pic.jpg); margin:0 auto; text-align:center; } | |
- | + | /* ---------------------------------------------------------------------------- */ | |
- | + | /* default styling */ | |
- | + | .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:460px; margin:0 auto; text-align:left; } | |
- | + | /* style the links */ | |
- | + | /* needs a background for IE6 - can be a color or a transparent gif */ | |
- | + | .nav a { background:url(trans.gif); filter: alpha(opacity=90); opacity:0.9; } | |
- | + | /* style the <b> element so that is does not affect the size of the link */ | |
- | + | .nav a b { color:#fff; font-weight:normal; display:block; padding:5px 10px; margin-right:1px; } | |
- | } | + | .nav a:hover b { color:#000; cursor:pointer; border-left:2px solid #eee; } |
- | + | .nav .fly .main b { background: transparent url(ulmulti5/arrow.gif) no-repeat right 9px; } | |
- | + | .nav .down b { background: transparent url(ulmulti5/arrow2.gif) no-repeat right 11px; } | |
- | + | /* for the offset left dropdown and flyout */ | |
- | + | .nav .nav4 ul b { text-align:right; } | |
- | + | .nav .nav4 ul .main b { background: transparent url(ulmulti5/arrow3.gif) no-repeat left 9px; text-align:right; } | |
- | + | .nav .nav4 ul a:hover b { border-left:0; border-right:2px solid #eee; } | |
- | + | /* HEIGHT */ | |
- | + | .nav ul ul { top:-25px; } /* position the top of the flyout sub menus */ | |
- | } | + | .nav ul ul.two { top:-40px; } /* position the top of the flyout sub menus */ |
- | + | /* WIDTH change this WITH CARE to suit your requirements */ | |
- | + | ||
- | + | /* FOR NAV1 */ | |
- | + | .nav1 { width:80px; } | |
- | + | .nav1 a { width:80px; } | |
- | } | + | .nav1 a b { background-color:#764; } |
- | + | /* FOR NAV2 */ | |
- | . | + | .nav2, .nav2 a { width:100px; } |
- | + | .nav .nav2 a b, .nav .nav2 .fly a b { background-color:#887; } | |
- | + | .nav2 ul li { max-width:100px; } | |
- | width: | + | .nav2 ul a { width:130px; } |
- | + | .nav2 ul ul { left:130px; } | |
- | + | .nav2 a { margin-right:-99px; } | |
- | } | + | .nav2 ul a { margin-right:-129px; } |
- | + | /* FOR NAV3 */ | |
- | + | .nav3, .nav3 a { width:100px; } | |
- | . | + | .nav .nav3 a b, .nav .nav3 .fly a b { background-color:#775; } |
- | + | .nav3 ul li { max-width:100px; } | |
- | margin: | + | .nav3 ul a { width:120px; } |
- | + | .nav3 ul ul { left:120px; } | |
- | + | .nav3 a { margin-right:-99px; } | |
- | } | + | .nav3 ul a { margin-right:-119px; } |
- | + | /* FOR NAV3 */ | |
- | . | + | .nav4, .nav4 a { width:80px; } |
- | + | .nav .nav4 a b, .nav .nav4 .fly a b { background-color:#675; } | |
- | + | .nav4 ul li { max-width:80px; } | |
- | } | + | .nav4 ul a { width:110px; } |
- | + | .nav4 ul { left:-30px; } /* position the dropdown left */ | |
- | . | + | .nav4 ul ul { left:auto; right:110px; } /* position the flyouts left */ |
- | + | .nav4 a { margin-right:-79px; } | |
- | + | .nav4 ul a { margin-right:-109px; } | |
- | + | /* FOR NAV5 */ | |
- | width:110px; | + | .nav5 { width:100px; } |
- | + | .nav5 a { width:100px; } | |
- | + | .nav5 a b { background-color:#a54; margin-right:0; } | |
- | + | /* ---------------------------------------------------------------------------- */ | |
- | + | ||
- | + | /* DO NOT CHANGE ANYTHING BELOW */ | |
- | + | .nav li { float:left; } /* fixes several IE related bugs, and allows for clearing */ | |
- | + | .nav ul { float:left; position:relative; z-index:20; } /* necessary for float drop and to stack the <ul>s */ | |
- | + | .nav ul li { clear:left; } /* must clear the floated list item inside sublist */ | |
- | background | + | .nav a { position:relative; display:block; } /* needs to have a position, to be above the rest */ |
- | } | + | .nav a.main { float:left; /* necessary for float drop */ margin-top:10000px; } /* bring the top level links back into view */ |
- | + | .nav .drop, .nav .fly { margin-top:-10000px; } /* hide the sub links and their containers, opera has low upper limits */ | |
- | . | + | .nav ul { margin-bottom:-5000px; } /* avoid any interaction between the subs, can be any large size */ |
- | display: | + | /* The bit that does ALL the work to bring the sub menus into view */ |
- | } | + | .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; border-left:2px solid #eee; } | |
- | + | .nav .nav4 ul a:hover b, .nav .nav4 ul a:focus b, .nav .nav4 ul a:active b { border-left:0; border-right:2px solid #eee; } | |
- | . | + | .nav2 ul a:hover, .nav2 ul a:focus, .nav2 ul a:active { margin-right:-30px; z-index:10; outline:0; } |
- | color:#000; | + | .nav3 ul a:hover, .nav3 ul a:focus, .nav3 ul a:active { margin-right:-20px; z-index:10; outline:0; } |
- | + | .nav4 ul a:hover, .nav4 ul a:focus, .nav4 ul a:active { margin-right:-30px; z-index:10; outline:0; } | |
- | } | + | /* OPERA fix */ |
- | + | .nav ul:hover, .nav ul ul:hover { clear:left; } /* to stop intermittent sub link :hover problems */ | |
- | . | + | |
- | + | /* ---------------------------------------------------------------------------- */ | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | + | ||
- | . | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | + | ||
- | . | + | |
- | + | ||
- | } | + | |
- | + | ||
- | + | ||
- | + | ||
</style> | </style> | ||
- | + | <!--[if lte IE 7]> | |
- | + | <style type="text/css"> | |
- | < | + | /* bug fixes for IE7 and lower - DO NOT CHANGE */ |
- | + | .nav .fly {width:99%;} /* make each flyout 99% of the prevous flyout */ | |
- | + | a:active {} /* requires a blank style for :active to stop it being buggy */ | |
- | + | </style> | |
- | + | <![endif]--> | |
- | <! | + | </head> |
- | <div | + | <body> |
- | <ul> | + | <div id="backgroundHolder"> |
- | + | <ul class="nav"> | |
- | + | <li class="nav1 drop"><a class="main" href="#url"><b>Home</b></a></li> | |
- | + | <li class="nav2 drop"><a class="main down" href="#url"><b>Equipment</b></a> | |
- | + | ||
- | + | ||
- | + | ||
- | <li | + | |
- | + | ||
- | + | ||
- | + | ||
- | <li><a href=" | + | |
<ul> | <ul> | ||
- | <li><a href=" | + | <li class="fly"><a class="main" href="#url"><b>Cameras</b></a> |
- | + | <ul> | |
- | + | <li><a href="#url"><b>Film Type</b></a></li> | |
- | <li><a href=" | + | <li><a href="#url"><b>Compact</b></a></li> |
- | <li><a href=" | + | <li><a href="#url"><b>Polaroid</b></a></li> |
- | + | <li><a href="#url"><b>Digital</b></a></li> | |
- | <li><a href=" | + | <li class="fly"><a class="main" href="#url"><b>Digital SLR</b></a> |
- | <li><a href=" | + | <ul> |
- | <li><a href=" | + | <li><a href="#url"><b>Canon</b></a></li> |
- | <li><a href=" | + | <li><a href="#url"><b>Nikon</b></a></li> |
- | + | <li><a href="#url"><b>Panasonic</b></a></li> | |
+ | <li><a href="#url"><b>Kodak</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#url"><b>Second Hand</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Video Cameras & Accessories</b></a> | ||
+ | <ul class="two"> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Latest Models</b></a> | ||
+ | <ul> | ||
+ | <li><a href="#url"><b>Nikon</b></a></li> | ||
+ | <li><a href="#url"><b>Panasonic</b></a></li> | ||
+ | <li><a href="#url"><b>Canon</b></a></li> | ||
+ | <li><a href="#url"><b>Pentax</b></a></li> | ||
+ | <li><a href="#url"><b>Minolta</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#url"><b>Special Offers</b></a></li> | ||
+ | <li><a href="#url"><b>Professional</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Lenses</b></a> | ||
+ | <ul> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Digital</b></a> | ||
+ | <ul> | ||
+ | <li><a href="#url"><b>Standard</b></a></li> | ||
+ | <li><a href="#url"><b>Telephoto</b></a></li> | ||
+ | <li><a href="#url"><b>Wide Angle</b></a></li> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Zoom</b></a> | ||
+ | <ul> | ||
+ | <li><a href="#url"><b>Nikon</b></a></li> | ||
+ | <li><a href="#url"><b>Pentax</b></a></li> | ||
+ | <li><a href="#url"><b>Minolta</b></a></li> | ||
+ | <li><a href="#url"><b>Panasonic</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Zoom with Macro</b></a> | ||
+ | <ul> | ||
+ | <li><a href="#url"><b>Panasonic</b></a></li> | ||
+ | <li><a href="#url"><b>Minolta</b></a></li> | ||
+ | <li><a href="#url"><b>Pentax</b></a></li> | ||
+ | <li><a href="#url"><b>Canon</b></a></li> | ||
+ | <li><a href="#url"><b>Nikon</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#url"><b>Fisheye</b></a></li> | ||
+ | <li><a href="#url"><b>x2 converters</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Standard SLR</b></a> | ||
+ | <ul> | ||
+ | <li><a href="#url"><b>Canon</b></a></li> | ||
+ | <li><a href="#url"><b>Nikon</b></a></li> | ||
+ | <li><a href="#url"><b>Panasonic</b></a></li> | ||
+ | <li><a href="#url"><b>Pentax</b></a></li> | ||
+ | <li><a href="#url"><b>Minolta</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#url"><b>Cases</b></a></li> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Large Format</b></a> | ||
+ | <ul> | ||
+ | <li><a href="#url"><b>Hasselblad</b></a></li> | ||
+ | <li><a href="#url"><b>Arca-Swiss</b></a></li> | ||
+ | <li><a href="#url"><b>Leica</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#url"><b>Lens Hoods</b></a></li> | ||
+ | <li><a href="#url"><b>Lens Cleaners</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#url"><b>Tripods</b></a></li> | ||
+ | <li><a href="#url"><b>Flashguns</b></a></li> | ||
+ | <li><a href="#url"><b>Accessories, filters & lens covers</b></a></li> | ||
+ | <li><a href="#url"><b>Special Offers</b></a></li> | ||
+ | <li><a href="#url"><b>Electronics</b></a></li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
- | + | <li class="nav3 drop"><a class="main down" href="#url"><b>Accessories</b></a> | |
- | <li><a | + | |
<ul> | <ul> | ||
- | <li><a href=" | + | <li class="fly"><a class="main" href="#url"><b>Flashguns</b></a> |
- | <li><a href=" | + | <ul> |
- | <li><a href=" | + | <li class="fly"><a class="main" href="#url"><b>Digital Cameras</b></a> |
- | <li><a href=" | + | <ul> |
- | + | <li><a href="#url"><b>Nikon</b></a></li> | |
+ | <li><a href="#url"><b>Canon</b></a></li> | ||
+ | <li><a href="#url"><b>Panasonic</b></a></li> | ||
+ | <li><a href="#url"><b>Pentax</b></a></li> | ||
+ | <li><a href="#url"><b>Kodak</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#url"><b>Film Cameras</b></a></li> | ||
+ | <li><a href="#url"><b>Reflectors</b></a></li> | ||
+ | <li><a href="#url"><b>Stands</b></a></li> | ||
+ | <li><a href="#url"><b>Remote Control</b></a></li> | ||
+ | <li><a href="#url"><b>Batteries</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Filters</b></a> | ||
+ | <ul> | ||
+ | <li><a href="#url"><b>Ultra Violet</b></a></li> | ||
+ | <li><a href="#url"><b>Lens protection</b></a></li> | ||
+ | <li><a href="#url"><b>Yellow</b></a></li> | ||
+ | <li><a href="#url"><b>Red</b></a></li> | ||
+ | <li><a href="#url"><b>Orange</b></a></li> | ||
+ | <li><a href="#url"><b>Blue</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Remote Control</b></a> | ||
+ | <ul> | ||
+ | <li><a href="#url"><b>Canon</b></a></li> | ||
+ | <li><a href="#url"><b>Nikon</b></a></li> | ||
+ | <li><a href="#url"><b>Pentax</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Camera Cases</b></a> | ||
+ | <ul> | ||
+ | <li><a href="#url"><b>Pentax</b></a></li> | ||
+ | <li><a href="#url"><b>Nikox</b></a></li> | ||
+ | <li><a href="#url"><b>Canon</b></a></li> | ||
+ | <li><a href="#url"><b>Pentax</b></a></li> | ||
+ | <li><a href="#url"><b>Kodak</b></a></li> | ||
+ | <li><a href="#url"><b>Minolta</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#url"><b>Lens Brush</b></a></li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
- | + | <li class="nav4 drop"><a class="main down" href="#url"><b>Outlets</b></a> | |
- | + | ||
- | <li><a href=" | + | |
<ul> | <ul> | ||
- | <li><a href=" | + | <li><a href="#url"><b>Support</b></a></li> |
- | <li><a href=" | + | <li><a href="#url"><b>Buying</b></a></li> |
+ | <li><a href="#url"><b>Photographers</b></a></li> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Stockist</b></a> | ||
+ | <ul> | ||
+ | <li><a href="#url"><b>Currys</b></a></li> | ||
+ | <li><a href="#url"><b>Dixons</b></a></li> | ||
+ | <li><a href="#url"><b>Jessops</b></a></li> | ||
+ | <li><a href="#url"><b>Staples</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#5"><b>General</b></a></li> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Sales</b></a> | ||
+ | <ul> | ||
+ | <li><a href="#url"><b>USA</b></a></li> | ||
+ | <li><a href="#url"><b>CANADA</b></a></li> | ||
+ | <li><a href="#url"><b>South America</b></a></li> | ||
+ | <li class="fly"><a class="main" href="#url"><b>Europe</b></a> | ||
+ | <ul> | ||
+ | <li><a href="#url"><b>Britain</b></a></li> | ||
+ | <li><a href="#url"><b>France</b></a></li> | ||
+ | <li><a href="#url"><b>Germany</b></a></li> | ||
+ | <li><a href="#url"><b>Spain</b></a></li> | ||
+ | <li><a href="#url"><b>Italy</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#url"><b>Australia</b></a></li> | ||
+ | <li><a href="#url"><b>Asia</b></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
- | + | <li class="nav5 drop"><a class="main" href="#url"><b>Privacy Policy</b></a></li> | |
- | + | ||
- | <li | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</ul> | </ul> | ||
- | + | </div> | |
- | + | <br> | |
- | < | + | <br> |
- | + | <div align="center"> </div> | |
- | + | <div style="width:550px;margin:20px auto;"> | |
+ | <p><strong><a href="http://js.mobanwang.com">模板王整理</a></strong> </p> | ||
</div> | </div> | ||
+ | </body> | ||
</html> | </html> |
Revision as of 16:07, 27 August 2014
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">