【发布时间】:2012-08-26 06:25:27
【问题描述】:
我有一个带有 background-color 和 3 像素白色边框的 div。
当我将html 元素设置为direction:rtl 和overflow-y: scroll 时,我会在边框右侧获得一个背景像素 - 仅在 IE9 中:
我在这里粘贴我的代码,因为在 JsFiddle 上我无法复制错误。
<!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 规则...
【问题讨论】:
标签: css internet-explorer-9 right-to-left