在谷歌瀏覽器下鼠標(biāo)經(jīng)過時(shí)文字效果不顯示,如:鼠標(biāo)經(jīng)過時(shí)在其他瀏覽器正常顯示背景樣式,在谷歌下就不顯示;
代碼如下列子:
.functree li{ width:200px; float:left; height:30px; line-height:30px; color:#000; font-size:12px;} .functree li a{ width:180px; padding-left:20px; color:#000; text-decoration:none; } .functree li a:hover{ width:200px; float:left; background:#d3eaf4; color:#000;}
解決方案:在li a里加上下面代碼;
.functree li a{ display:block;}
Copyright © 2009-2020 JnSuDong.Com All Right Reserved. 魯ICP備19043865號(hào)