http://img520.imageshack.us/img520/6951/723200995413pm.pngIE6 - 元素弹出进出
正如你可以从图片上面看,在IE6的div以基本相同的标记和CSS有时弹出进出的位置,当我移动鼠标。我没有在他们的任何悬停效果...
HTML标记
<pre><div class="block yellow shieldalert">
<div class="content">
<h6>Shield Alert</h6>
<pre class="brush:xhtml">
<!-- content for syntax highlighting -->
</pre>
</div>
</div></pre>
CSS(部分)
<pre>div.block {
border: 1px solid;
padding-left: 32px;
margin: 5px 0;
background-repeat: no-repeat;
background-position: 8px 5px;
background-color: #ebebeb;
border-color: #d7d7d7;
}
div.content {
background-color: white;
padding: 2px 10px 1px 10px;
border-left: 1px solid #d7d7d7;
}
div.yellow {
background-color: #fff67f;
border: 1px solid #e6e089;
}
div.yellow div.content {
background-color: #fffde0;
border-left: 1px solid #e6e089;
}
div.yellow h1, div.yellow h2, div.yellow h3, div.yellow h4, div.yellow h5, div.yellow h6 {
color: #cfcd13;
}
div.shieldalert {
background-image: url(../images/div/info-shieldalert.png);
}</pre>
CSS:悬停不适用于除IE6中锚定标记之外的任何内容。你有什么JS? – peirix 2009-07-24 06:48:30
js。是的,但是......它有关系吗?我不认为任何js修改/在受影响的div上工作。 – iceangel89 2009-07-24 07:34:08