【发布时间】:2015-10-22 17:07:50
【问题描述】:
当使用从右到左的语言并在父级上进行填充时,IE 无法在某些元素上正确显示边框半径。边框最终被我假设的父级填充所抵消。设置获取背景的元素的display:inline-block; 似乎可以解决此问题,但它会导致我不想要的包装问题。这是一个在 Chrome 中工作的小提琴,但在 Firefox 中看起来很糟糕:http://jsfiddle.net/u3x0twzg/5/
HTML:
<div dir="rtl">
<span class="wrapper">
<span class="border">Here is some text</span>
</span>
</div>`
CSS:
body {
background-color:grey;
}
.wrapper {
display:inline-block;
padding: 0 10px 0 0;
}
.border {
background-color:white;
border-radius:5px;
}
【问题讨论】:
标签: html css internet-explorer right-to-left