HTML二级导航出现下拉列表后怎么让一级栏目也有鼠标悬停
#nav{height:40px;margin-bottom:10px;}#navli.da{float:left;list-style:none;width:78px;...
#nav{ height:40px; margin-bottom:10px;}
#nav li.da{ float:left; list-style:none; width:78px; height:40px; line-height:40px; text-align:center; display: block; padding-left:20px; }
#nav li a:hover{ background:#1287b4; height:40px; color:#FFF; text-decoration:none; }
#nav li ul li{ width:150px;}
#nav li ul li a { background:#1287b4 url(../img/subNavLine.gif) repeat-x left bottom; display:block; color: #FFF; width:150px; padding-left:8px; }
#nav li ul li a:hover{ background:#06F; padding-left:8px; }
#nav li a { color: #000; display:block; font-family:"幼圆"; font-size:16px;}
#nav li ul{ display:none; }
#nav li:hover ul { display:block;width:150px;} 展开
#nav li.da{ float:left; list-style:none; width:78px; height:40px; line-height:40px; text-align:center; display: block; padding-left:20px; }
#nav li a:hover{ background:#1287b4; height:40px; color:#FFF; text-decoration:none; }
#nav li ul li{ width:150px;}
#nav li ul li a { background:#1287b4 url(../img/subNavLine.gif) repeat-x left bottom; display:block; color: #FFF; width:150px; padding-left:8px; }
#nav li ul li a:hover{ background:#06F; padding-left:8px; }
#nav li a { color: #000; display:block; font-family:"幼圆"; font-size:16px;}
#nav li ul{ display:none; }
#nav li:hover ul { display:block;width:150px;} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询