0
使用绝对位置指定DIV
圆角的左上角。圆角和IE6问题的位置绝对圆角和问题
HTML:
<div id="MyDiv">
Some content
<div class="topLeft"> </div>
</div>
CSS:
#MyDiv {
position: relative;
padding: 12px;
background: #fff url('graident.png') repeat-x top left;
}
.topLeft {
position: absolute;
top: 0;
right: 0;
width: 10px;
height: 10px;
background: transparent url('corner.png') no-repeat top right;
}
这工作正常,在所有的浏览器IE6 expcept。
在IE6的corner.png
形象似乎是约1px的从顶端角落,本质上不是top: 0; and right: 0; but more like top: 1px; right: 1px;
任何人都可以解释为什么这可能是IE6仅发生了什么?