+ -
当前位置:首页 → 问答吧 → 我的二级LI标签为什么会读取到1级LI标签的样式

我的二级LI标签为什么会读取到1级LI标签的样式

时间:2011-04-18

来源:互联网

CSS code
#menu{float:left; width:960px; height:31px; position:relative}
.menujg1{float:left; width:12px; height:31px; overflow:hidden}
#menu ul li{float:left; width:106px; height:31px; margin:0 5px 0px 0 ; display:inline; background:url(../images/menubg.png) no-repeat; font-family:Verdana, Geneva, sans-serif; font-size:14px; font-weight:600; text-align:center; line-height:34px;_line-height:34px;*line-height:34px;}
#ll{float:left; width:106px; height:31px; margin:0 5px 0px 0 ; display:inline; background:url(../images/menubg2.png) no-repeat !important; font-family:Verdana, Geneva, sans-serif; font-size:14px; font-weight:600; text-align:center; line-height:34px;_line-height:34px;*line-height:34px; text-indent:-15px; position:relative; z-index:1000}
#menu ul li .pnow{float:left; width:106px; height:31px; background:url(../images/menubg3.png) no-repeat !important; font-family:Verdana, Geneva, sans-serif; font-size:14px; font-weight:600; text-align:center; line-height:34px;_line-height:34px;*line-height:34px; color:#fff}
#menu ul li a:hover{float:left; width:106px; height:31px;  background:url(../images/menubg4.png) no-repeat !important; font-family:Verdana, Geneva, sans-serif; font-size:14px; font-weight:600; text-align:center; line-height:34px;_line-height:34px;*line-height:34px; color:#000;}
#ll a.pnow3:hover{float:left; width:106px; height:31px;  background:url(../images/menubg5.png) no-repeat !important; font-family:Verdana, Geneva, sans-serif; font-size:14px; font-weight:600; text-align:center; line-height:34px;_line-height:34px;*line-height:34px; color:#000; display:block;}
#ll a.pnow3{display:block; width:106px; height:31px;}
#k1{display:none; position:relative; z-index:900}
#k1 li{float:left; width:345px !important; display:block; background:#ffffff !important;}
#bh{float:left; width:347px;}

#k1 .ddnewhead_goods_panel {position:absolute;top:28px;width:352px;height:113px;border:1px solid #ee7304;z-index:400;overflow:hidden;}



#ll是二级UL的ID

作者: dean7788   发布时间: 2011-04-18

二级的LI会读取到一级的LI

作者: dean7788   发布时间: 2011-04-18

热门下载

更多