绿色带阴影的CSS导航菜单代码
代码简介:
一个带阴影效果的纯CSS实现的网站导航条,看着比较大气,每个菜单项还有立体效果,响应鼠标变背景,绿色风格,当然颜色你可以自己调整哦,只要学会了思路,修改就方便了。
代码内容:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>绿色带阴影的CSS导航菜单代码_网页代码站(www.webdm.cn)</title> <style type="text/css"> body { margin:30px 0 10px 0; /*/*/ font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; background-color:#f3f3e0; } h1.left { text-align:left; padding-left:30px; } a { text-decoration:none; } ul, li { margin:0; padding:0; } /* navigator css */ .wrapper { background-color:#629b5b; border-bottom:2px solid #e0e9d0; } .innerWrapper { border-top:2px solid #8bb486; } .innerWrapper #navigator { padding:5px 0 5px 0; border-top:2px solid #71a46b; border-bottom:1px solid #54814e; } .innerWrapper li { list-style-type:none; display:inline; margin:2px 10px 2px 10px; } .innerWrapper li a { padding:2px 9px 2px 9px; font-family: tahoma; font-weight:bold; font-size:10.2pt; color:#ffffcc; /*yellow*/ font-variant:small-caps; } .innerWrapper li { padding:2px 9px 2px 9px; font-family: tahoma; font-size:10pt; color:#ffffcc; /*yellow*/ } .innerWrapper li a:hover { background-color:#6c9e66; border-width:1px; border-style:solid; border-color:#7ba775 #54814e #54814e #7ba775; padding:2px 8px 2px 8px; } .innerWrapper li.youAreHere a { border-width:1px; border-style:solid; border-color:#55814e #7ca775 #7ca775 #55814e; background-color:#64985c; padding:2px 9px 2px 9px; color:#e8ebc0; } .innerWrapper li.youAreHere a:hover { border-width:1px; border-style:solid; border-color:#55814e #7ca775 #7ca775 #55814e; background-color:#64985c; padding:2px 9px 2px 9px; color:#e8ebc0; } .shadowWrapper { height:3px; overflow:hidden; border-bottom:2px solid #a1bc94; background-color:#54814e; } /* content */ div#content { margin-top:40px; padding:30px; } /* footer */ div#footer { margin-top:40px; text-align:center; font-size:10pt; } </style> <body> <h1 class="left"><a href="/">WebDm.Cn</a></h1> <div id="wrapper" class="wrapper"> <div id="innerWrapper" class="innerWrapper"> <ul id="navigator"> <li class="youAreHere"><a href="/"> 网站首页 </a></li> <li><a href="/">站长博客 </a></li> <li><a href="/">WebDm.Cn</a></li> <li><a href="http://www.webdm.cn/"> 网页特效 </a></li> <li><a href="http://www.webdm.cn">源码下载</a></li> </ul> </div> <div id="shadow" class="shadowWrapper"></div> </div> </body> </html> <br> <a href="http://www.webdm.cn">网页代码站</a> - 最专业的代码下载网站 - 致力为中国站长提供有质量的代码!
代码来自:http://www.webdm.cn/webcode/9bc885b9-7289-4c33-b129-88321f9a5903.html