我有一个background-color
的div和一个3像素的白色边框。在IE9边框右侧显示背景
当我html
元素设置为direction:rtl
和overflow-y: scroll
,我得到的背景,边框右侧的像素 - 只有在IE9:
我在这里贴上我的代码,因为在JsFiddle上我无法复制这个bug。
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
html {
overflow-y: scroll;
direction:rtl;
}
.main {
margin: 0 auto;
width: 960px;
}
.sld-menu-item {
height: 85px;
border: 3px solid #fff;
background-color: #d25188;
}
</style>
</head>
<body>
<div class="main" role="main">
<div class="sld-menu-item sld-menu-item-2">
</div>
</div>
</body>
有没有人遇到这个问题,和/或可有人提出一个解决办法?我不能放弃滚动和RTL规则...