日期:2014-05-17  浏览次数:20715 次

请教下,IE6下a标签background时显时不显的问题。
CSS:
.menubg{ width:650px; margin:auto; overflow:hidden;}
.menubg li{ width:100px; height:88px; float:left; display:inline; position:relative;}
.menubg .img01{ float:left; width:70px; height:46px; background:url(../images/menu/nav1aa.png) no-repeat; margin-top:10px;}
.menubg .img01:hover, .menubg .img01:active{ width:70px; height:46px; background:url(../images/menu/nav1a.jpg) no-repeat;}

HTML:
<a href="/index" class="img01" onmouseover="hide('navul1')" title="你为什么会时显时不显?">移到我头上就可能不会显示哦</a>

在IE6下时显时不显,什么情况?

------解决方案--------------------
onmouseover="hide('navul1')" 
是不是这个在作怪?
------解决方案--------------------
ie6渲染有问题,有时候会是那样的,hover以后,如果有背景图片,有时候会变不会来
------解决方案--------------------
探讨
onmouseover="hide('navul1')"
是不是这个在作怪?

------解决方案--------------------
在.menubg .img01 添加这个属性即可: display:block
------解决方案--------------------
试试触发 a的 haslayout
------解决方案--------------------
顶顶看
------解决方案--------------------
是不是没有定义块级别的啊~~~所以,显示出来了,但是因为太小而没有显示啊~~~