| <!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> < http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>CSS+XHTML代码</title> </head> <style type="text/css"> /* common styling */
/* Set up the default font and ovrall size to include image */ body { background: #fff; font-family: "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 12px; }
#menu {list-style-type:none; margin:0 auto 50px auto; padding:0; width:302px;} #menu li {padding:0; margin:0; position:relative; width:150px; height:1.7em; z-index:100;} #menu li dl {position:absolute; top:0; left:0; padding-bottom:0;} #menu li a, #menu li a:visited {text-decoration:none;} #menu li dd {display:none;} #menu table {border-collapse:collapse; padding:0; margin:-1px; font-size:1em;} #menu dl {width: 150px; margin: 0; padding: 0; background: transparent;} #menu dt {margin:0; padding: 0;}
#menu dd {margin:0; padding:0; color: #fff; font-size: 1em; text-align:left; width:150px; float:right; clear:right;}
#menu dt a, #menu dt a:visited {display:block; font-size: 0.9em; color: #c00; text-align:center; border:1px solid #c00; border-width:0 1px 1px 1px; background:#d4d4d4; padding:0.25em 0 0.75em 0;}
#menu li a:hover {border:0;} #menu li:hover dd, #menu li a:hover dd {display:block;} #menu li:hover dl, #menu li a:hover dl {width:301px;}
#menu li:hover dt a, #menu a:hover dt a {color:#000; background:#ddd; border:1px solid #c00; border-width:0 1px 1px 1px;}
#menu dd a, #menu dd a:visited {background:#c00; color:#fff; padding:0.5em 0; text-decoration:none; display:block; text-align:center; border-left:1px solid #c00; border-right:1px solid #c00; width:148px;}
#menu dd a:hover {background: #ddd; color:#000; border-left:1px solid #c00; border-right:1px solid #c00;}
#menu b {display:block; overflow:hidden; height:1px;}
b.p1 {background:#c00; margin:0 5px;} b.p2 {background:#d4d4d4; border:2px solid #c00; border-width:0 2px; margin:0 3px;} b.p3 {background:#d4d4d4; margin:0 2px; border:1px solid #c00; border-width:0 1px;} b.p4 {height:2px; background:#d4d4d4; margin:0 1px; border:1px solid #c00; border-width:0 1px;} b.p5 {background:#c00; margin:0 5px;} b.p6 {background:#c00; margin:0 3px;} b.p7 {background:#c00; margin:0 2px;} b.p8 {height:2px; background:#c00; margin:0 1px;}
#menu li:hover b.p2, #menu a:hover b.p2 {background:#fff;} #menu li:hover b.p3, #menu a:hover b.p3 {background:#f0f0f0;} #menu li:hover b.p4, #menu a:hover b.p4 {background:#e8e8e8;} </style> <body>
<ul id="menu"> <li> <!--[if lte IE 6]><a href="#nogo"><table><tr><td><![endif]--> <dl> <dt><b class="p1"></b><b class="p2"></b><b class="p3"></b><b class="p4"></b><a href="../menu/index.html">DEMOS</a></dt> <dd><a href="../menu/zero_dollars.html" title="The zero dollar ads page">zero dollars</a></dd> <dd><a href="../menu/embed.html" title="Wrapping text around images">wrapping text</a></dd> <dd><a href="../menu/form.html" title="Styling forms">styled form</a></dd> <dd><a href="../menu/nodots.html" title="Removing active/focus borders">active focus</a></dd> <dd><a href="../menu/shadow_boxing.html" title="Multi-position drop shadow">shadow boxing</a></dd> <dd><a href="../menu/old_master.html" title="Image Map for detailed information">image map</a></dd> <dd><a href="../menu/bodies.html" title="fun with background images">fun with backgrounds</a></dd> <dd><a href="../menu/fade_scroll.html" title="fade-out scrolling">fade scrolling</a></dd> <dd><a href="../menu/em_images.html" title="em size images compared">em sized images</a><b class="p8"></b><b class="p7"></b><b class="p6"></b><b class="p5"></b></dd> </dl> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li> <!--[if lte IE 6]><a href="#nogo"><table><tr><td><![endif]--> <dl> <dt><b class="p1"></b><b class="p2"></b><b class="p3"></b><b class="p4"></b><a href="/index.html">MENUS</a></dt> <dd><a href="/spies.html" title="a coded list of spies">spies menu</a></dd> <dd><a href="/vertical.html" title="a horizontal vertical menu">vertical menu</a></dd> <dd><a href="/expand.html" title="an enlarging unordered list">enlarging list</a></dd> <dd><a href="/enlarge.html" title="an unordered list with link images">link images</a></dd> <dd><a href="/cross.html" title="non-rectangular links">non-rectangular links</a></dd> <dd><a href="/jigsaw.html" title="jigsaw links">jigsaw links</a></dd> <dd><a href="/circles.html" title="circular links">circular links</a><b class="p8"></b><b class="p7"></b><b class="p6"></b><b class="p5"></b></dd> </dl> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li> <li> <!--[if lte IE 6]><a href="#nogo"><table><tr><td><![endif]--> <dl> <dt><b class="p1"></b><b class="p2"></b><b class="p3"></b><b class="p4"></b><a href="../layouts/index.html">LAYOUTS</a></dt> <dd><a href="../layouts/bodyfix.html" title="Cross browser fixed layout">Fixed 1</a></dd> <dd><a href="../layouts/body2.html" title="Cross browser fixed layout">Fixed 2</a></dd> <dd><a href="../layouts/body4.html" title="Cross browser fixed layout">Fixed 3</a></dd> <dd><a href="../layouts/body5.html" title="Cross browser fixed layout">Fixed 4</a></dd> <dd><a href="../layouts/minimum.html" title="A simple minimum width layout">minimum width for Internet Explorer</a><b class="p8"></b><b class="p7"></b><b class="p6"></b><b class="p5"></b></dd> </dl> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li> <!--[if lte IE 6]><a href="#nogo"><table><tr><td><![endif]--> <dl> <dt><b class="p1"></b><b class="p2"></b><b class="p3"></b><b class="p4"></b><a href="../mozilla/index.html">MOZILLA</a></dt> <dd><a href="../mozilla/dropdown.html" title="A drop down menu">drop down menu</a></dd> <dd><a href="../mozilla/cascade.html" title="A cascading menu">cascading menu</a></dd> <dd><a href="../mozilla/content.html" title="Using content:">content:</a></dd> <dd><a href="../mozilla/moxbox.html" title=":hover applied to a div">mozzie box</a></dd> <dd><a href="../mozilla/rainbow.html" title="I can build a rainbow">rainbow box</a></dd> <dd><a href="../mozilla/snooker.html" title="Snooker cue">snooker cue made using border art</a></dd> <dd><a href="../mozilla/target.html" title="Target Practise">target practise</a><b class="p8"></b><b class="p7"></b><b class="p6"></b><b class="p5"></b></dd> </dl> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li> </ul>
</body> </html>
|