代码简介: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> <title>CSS打造立体按钮式的竖向导航菜单代码_网页代码站(www.webdm.cn)</title> <style type="text/css"> /*www.webdm.cn*/ #gallery {150px; border:1px solid #000; padding:25px; background:#7ea089; margin:0 auto;} * html #gallery {202px; w\idth:150px;} #gallery dt {border:1px solid #fff; border-color:#000 #cde #cde #000; text-align:center; background:#698572; padding:5px 0; margin:7px 0; font- weight:bold; color:#fff;} #gallery dd {padding:0; margin:3px 0; text-align:center; background:#b7cabd;} #gallery div, #gallery span {border:1px solid #000;} #gallery .hh {padding:1px 0;} #gallery span {display:block;}/*www.webdm.cn*/ #gallery .aa {border-color:#b7cabd #698572 #698572 #b7cabd;} #gallery .bb {border-color:#698572 #93b09c #93b09c #637e6c;} #gallery .cc {border-color:#5a7362 #a2baaa #a2bbaa #5c7564;} #gallery .dd {border-color:#5a7362 #a2baaa #a2bbaa #5c7564;} #gallery .ee {border-color:#6f8d79; padding:0 2px 0 0;} * html #gallery .ee {padding:0;} #gallery a, #gallery a:visited {display:block;100%; border:1px solid #000; color:#840; text-decoration:none;} #gallery .ff {border-color:#d1ddd5 #5f6962 #5f6962 #d0ddd4;} #gallery .gg {border-color:#c9d7cd #7c8980 #7c8980 #c8d6dd;} #gallery .hh {border-color:#c0d0c5 #9aaa9f #9aaa9f #bfd0c5;} #gallery a:hover {background:#a2baaa; color:#000;} #gallery a:hover .ff {display:block;border-color:#5f6962 #d0ddd4 #d1ddd5 #5f6962;} #gallery a:hover .gg {display:block;border-color:#7c8980 #c8d6dd #c9d7cd #7c8980;} #gallery a:hover .hh {display:block;border-color:#9aaa9f #bfd0c5 #c0d0c5 #9aaa9f; padding:2px 0 0 0;} </style> </head> <body> <dl id="gallery"> <dt>立体按钮式的菜单</dt> <dd> <div class="aa"><div class="bb"><div class="cc"><div class="dd"><div class="ee"> <a href="/" title=""><span class="ff"><span class="gg"><span class="hh">网页代码站</span></span></span></a> </div></div></div></div></div> </dd> <dd> <div class="aa"><div class="bb"><div class="cc"><div class="dd"><div class="ee"> <a href="http://www.webdm.cn" title=""><span class="ff"><span class="gg"><span class="hh">WebDm.cn</span></span></span></a> </div></div></div></div></div> </dd> <dd> <div class="aa"><div class="bb"><div class="cc"><div class="dd"><div class="ee"> <a href="/" title=""><span class="ff"><span class="gg"><span class="hh">网页特效</span></span></span></a> </div></div></div></div></div> </dd> <dd> <div class="aa"><div class="bb"><div class="cc"><div class="dd"><div class="ee"> <a href="/" title=""><span class="ff"><span class="gg"><span class="hh">分类索引</span></span></span></a> </div></div></div></div></div> </dd> <dd> <div class="aa"><div class="bb"><div class="cc"><div class="dd"><div class="ee"> <a href="/" title=""><span class="ff"><span class="gg"><span class="hh">留言本</span></span></span></a> </div></div></div></div></div> </dd> <dd> <div class="aa"><div class="bb"><div class="cc"><div class="dd"><div class="ee"> <a href="http://www.webdm.cn" title=""><span class="ff"><span class="gg"><span class="hh">下载排行</span></span></span></a> </div></div></div></div></div> </dd> </dl> </body> </html> <br> <a href="http://www.webdm.cn">网页代码站</a> - 最专业的代码下载网站 - 致力为中国站长提供有质量的代码!
代码来自:http://www.webdm.cn/webcode/9d99cbd7-c08d-4686-ae53-cd12e3cc4f02.html