使用CSS+XHTML制作的下拉菜单(代码)
时间:2011-03-31 08:36来源: 作者: 点击:
次
下面为你献上使用CSS+XHTML制作的下拉菜单的代码
样式部分:
* {
margin:0;
padding:0;
}
body {
font:12px Verdana, Geneva, sans-serif #444;
line-hei
下面为你献上使用CSS+XHTML制作的下拉菜单的代码
样式部分:
* { margin:0; padding:0; } body { font:12px Verdana, Geneva, sans-serif #444; line-height:1.5; } ul li { list-style:none; } .menu { width:660px; margin:20px auto; } .menu li { display:inline; float:left; margin:0 5px; background:#f2f2f2; border:1px #39c solid; text-align:center; font-size:14px; font-weight:700; line-height:30px; cursor:hand; } .tuckUp { display:inline; width:120px; height:30px; overflow:hidden; background:#f2f2f2; } .pullDown{ display:inline; height:auto; } .item a:link, .item a:visited { display:inline; float:left; width:110px; background:#ccc; text-align:center; color:#444; font-size:12px; font-weight:normal; text-decoration:none; line-height:25px; margin:0 5px 5px 5px; } .item a:hover { display:inline; float:left; background:#39c; width:100px; color:#FFF; text-decoration:none; text-align:center; font-size:12px; font-weight:700; font-weight:normal; line-height:25px; padding:0 0 0 10px; margin:0 5px 5px 5px; }
(责任编辑:admin)
|
织梦二维码生成器
------分隔线----------------------------