HTML水平滚动条中的异常差距

时间:2013-02-22 15:17:20

标签: html css scrollbar gaps-in-visuals

好的,我有一个DIV用于滚动条,这两个都是必需的,这是我开始使用的简单布局:

<html>
<head>
<title>Testing</title>
</head>

<style>
.Test {
    overflow-x: scroll !important;
    overflow-y: scroll !important;
    height: 300px;
    width: 100%;
}
</style>

<body>
    <div class="Test"></div>
</body>
</html>

当在IE9中显示时,我在水平滚动条的右手大小上有一个间隙。我附上了一张图片来说明问题。

An example of what is shown 任何帮助导致这个问题的人都会非常感激。

1 个答案:

答案 0 :(得分:2)

您可以尝试在div中设置滚动条样式

scrollbar-track-color: #cacaca; 

这使我的滚动条颜色均匀。

Here's where I found it along with some other styling tricks

相关问题