滚动条在IE 10中不起作用

时间:2013-12-08 14:24:15

标签: internet-explorer-10

Issue rises only in IE 10 it works fine on IE 8, IE 9 and chrome.
I have table with 2 “tr” tags
The first “tr” tag has div with css class “scrollTV” contains tree nodes

当我加高度:100%;到那个类,我扩展了它扩展的树节点,然后向下推第二个“tr”标记,使它变得不可见。

So I need both “tr” tags become visible and the first one have scroll bar to get the expanded data.

scrollTV class as the following
div.scrollTV {
height:100%;
width:99%;
border:0px;
overflow:scroll;
}

1 个答案:

答案 0 :(得分:0)

不要将百分比格式的高度设置为“100%”,而是尝试设置为“px”格式。它应该解决问题。

div.scrollTV { //set height in "px" format instead of "%"
height:100px;
width:99%;
border:0px;
overflow:scroll;
}

(OR)

如果使用百分比格式,它定义包含块的高度百分比,即“td” - 您需要以“px”格式设置“td”的高度。

td.scrollTV_TD { //set height of td in "px" format
height:100px;
}