【发布时间】:2011-06-15 13:46:39
【问题描述】:
html:
<div id="outer">
<div id="inner">
</div>
</div>
css:
#outer {
position: absolute;
left: 100px;
top: 0;
width: 100px;
height: 100px;
direction: rtl;
background-color: blue;
}
#inner {
display: inline-block;
position: absolute;
width: 50px;
height: 50px;
background-color: yellow;
}
在 Chrome 中,黄色框位于蓝色框之外。
在其他浏览器(firefox、IE)中,黄框在蓝框内。
这是 webkit 的 bug,为什么?
jsfiddle 上的一个测试用例: http://jsfiddle.net/QF9tT/
【问题讨论】:
标签: css google-chrome webkit right-to-left