绿色十分好的纯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" /> <title>纯css打造绿色横向二级导航菜单代码</title> <style> body {font-family:\5B8B\4F53,Arial Narrow,arial,serif;background:#ffffff;font-size:12px;} body,div,dl,dt,dd,ul,ol,li,pre,form,fieldset,input,textarea,blockquote,emBED{padding:0; margin:0;} li{list-style-type:none;} #menu {width:960px;margin:30px auto 0px;height:39px;background: url('/jscss/demoimg/201403//menu-bg.gif') no-repeat;} #menu li {float:left;width:109px;line-height:39px;text-align:center;position:relative;border:none;} #menu li:hover {background:url("/jscss/demoimg/201403//menu-hover.gif") no-repeat right top;} #menu li a {font-size:14px; color: #EEEEEE;display:block;outline:0;text-decoration:none; } #menu li:hover a {color:#161616;} #menu li .drop {background:url("/jscss/demoimg/201403//arrow.gif") no-repeat right 14px;margin-right:6px;} #menu li:hover .drop {background:url("/jscss/demoimg/201403//arrowhover.gif") no-repeat right 14px;} #menu li:hover .nodrop {height:37px;line-height:37px;border-bottom:1px solid #2f8a0c;} #menu li:hover .dropdown_1column {left:0px;top:38px;} .col_1{display:inline;float: left;position: relative;margin-left: 5px;margin-right: 5px;width:130px;} .dropdown_1column{margin:0px auto;float:left;position:absolute;left:-999em;text-align:left;border:1px solid #21910e;border-top:none;background:#F4F4F4;width: 140px;} #menu li:hover div a {font-size:12px;color:#444;} #menu li:hover div a:hover{color:#21910e;} #menu li ul {list-style:none;padding:10px 5px;margin:0;} #menu li ul li {font-size:12px; line-height:26px;position:relative;padding:0;margin:0; float:none; text-align:left;width:130px;} #menu li ul li a{background:url("/jscss/demoimg/201403//subarrow.gif") no-repeat left 9px;padding-left:24px;} #menu li ul li:hover {background:none;border:none;padding:0;margin:0;} </style> </head> <body> <div id="menu"> <ul> <li><a href="#" class="nodrop">首 页</a></li> <li><a href="#" class="drop">源码爱好者</a> <div class="dropdown_1column"> <div class="col_1"> <ul class="simple"> <li><a href="#">网站建设</a></li> <li><a href="#">导航条代码</a></li> <li><a href="#">源码爱好者</a></li> <li><a href="#">电子商务</a></li> <li><a href="#">网站制作</a></li> </ul> </div> </div> </li> <li><a href="#" class="drop">网站建设</a> <div class="dropdown_1column"> <div class="col_1"> <ul class="simple"> <li><a href="#">网站建设</a></li> <li><a href="#">导航条代码</a></li> <li><a href="#">源码爱好者</a></li> <li><a href="#">网站推广</a></li> <li><a href="#">网站优化</a></li> <li><a href="#">网站制作</a></li> </ul> </div> </div> </li> <li><a href="#" class="drop">网络营销</a> <div class="dropdown_1column"> <div class="col_1"> <ul class="simple"> <li><a href="#">网站建设</a></li> <li><a href="#">导航条代码</a></li> <li><a href="#">源码爱好者</a></li> <li><a href="#">电子商务</a></li> <li><a href="#">网站推广</a></li> <li><a href="#">网站优化</a></li> <li><a href="#">网站制作</a></li> </ul> </div> </div> </li> <li><a href="#" class="drop">网络营销</a> <div class="dropdown_1column"> <div class="col_1"> <ul class="simple"> <li><a href="#">网站建设</a></li> <li><a href="#">导航条代码</a></li> <li><a href="#">源码爱好者</a></li> <li><a href="#">电子商务</a></li> <li><a href="#">网站推广</a></li> <li><a href="#">网站制作</a></li> </ul> </div> </div> </li> <li><a href="#" class="nodrop">关于我们</a></li> <li><a href="#" class="nodrop">联系我们</a></li> </ul> </div> </body> </html>
相关推荐
Ladyseven 2020-10-22
李鴻耀 2020-08-17
yaodilu 2020-08-03
luofuIT成长记录 2020-09-22
Mynamezhuang 2020-09-18
zhoujiyu 2020-06-28
89510194 2020-06-27
CaiKanXP 2020-06-13
MaureenChen 2020-06-12
Phoebe的学习天地 2020-06-07
淡风wisdon大大 2020-06-06
buttonChan 2020-06-06
xtuhcy 2020-05-20
AlisaClass 2020-05-18
赵家小少爷 2020-05-16
nicepainkiller 2020-05-05