竖向蓝色圆角经典的CSS菜单代码,代码简介:竖向圆角滑过变色的CSS菜单栏,同样来自老外网站哦,在IE6下好像有点问题,自己修正下。
代码内容:
<!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> img{border:0px;} .flt{float:left;} .menubg{clear:left; background-color:#6FA9C7; width:202px;} .menu{float:left; clear:left; font:bold 11px Helvetica, Arial, sans-serif;} .menu li { margin:0px 0px 0px 0px; list-style:none; } .menu a, .menu a:visited { width:186px; height:22px; margin:0px 0px 2px -32px; position:relative; display:block; color:#cbe7f5; text-decoration:none; background:url(http://www.webdm.cn/images/20090918/menubg4.jpg) no-repeat; padding:4px 0 0 8px; } *html .menu a, .menu a:visited { width:186px; height:22px; margin:0px 0px 2px -32px; position:relative; display:block; color:#cbe7f5; text-decoration:none; background:url(http://www.webdm.cn/images/20090918/menubg4.jpg) no-repeat; padding:4px 0 0 8px; } .menu a:hover, .menu a:active, .menu li.current_page_item a, .menu li.current_page_item a:visited { background:url(http://www.webdm.cn/images/20090918/menubg3.jpg) no-repeat; text-decoration:none; } .bot{clear:left;} </style> </head> <body> <img src="/uploads/201103/201103011298942526_0.jpg" width="202" height="4" alt="" class="top flt" /> <div class="menubg flt"> <ul class="menu flt"> <li class="current_page_item"><a href="/">Home</a></li> <li class=""><a href="/" title="About">About Us</a></li> <li class=""><a href="http://www.webdm.cn" title="Work">Work</a></li> <li class=""><a href="/" title="Contact">Contact</a></li> <li class=""><a href="/" title="Location">Location</a></li> <li class=""><a href="http://www.webdm.cn" title="Welcome to webdm.cn">WebDm.cn</a></li> </ul> </div> <img src="/uploads/201103/201103011298942526_1.jpg" width="202" height="3" alt="" class="bot flt" /> </body> </html>
评论