分享电子商务心得

日志分类:用户体验

一个漂亮的透明的css多级菜单

2009-02-27 21:03  |  分类:用户体验

今天发现一个漂亮的透明的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=utf-8″ />
<title>漂亮的透明css菜单</title>
<style type=”text/css”>
#wrapper {width:750px; margin:0 auto;}
#background {width:750px; height:440px; background:url(http://www.stunicholls.myby.co.uk/pro_drop12/model3.jpg); padding-top:10px;}
#menu2 {padding:0; width:750px; margin:0; list-style:none; height:28px; position:relative; z-index:500; font-family:arial, verdana, sans-serif; background:#000; border-bottom:1px solid #edb;}
#menu2 li.top {display:block; float:left;}
#menu2 li a.top_link {display:block; height:25px; float:left; line-height:22px; font-size:11px; font-weight:bold; padding:0 20px 0 10px; color:#edb; text-decoration:none; border-top:3px solid #000;}
#menu2 li a.top_link:hover {color:#d85; border-color:#a52;}
#menu2 li:hover > a.top_link {color:#d85; border-color:#a52;}
#menu2 table {border-collapse:collapse; width:0; height:0; position:absolute; top:0; left:0;}
/* Default link styling */
/* Style the list OR link hover. Depends on which browser is used */
#menu2 a:hover {visibility:visible; position:relative; z-index:200;}
#menu2 li:hover {position:relative; z-index:200;}
/* keep the ‘next’ level invisible by placing it off screen. */

全文阅读 »