保持桌面高度固定,尽管其中的行数为ie9

时间:2013-12-22 09:13:45

标签: html css internet-explorer html-table

我想要的是How to scroll table's "tbody" independent of "thead"?

唯一的问题是我无法在IE9上运行。

我做了一个小提琴http://jsfiddle.net/fe8Xf/

我正在使用这样的样本表:

<table border='1px'>
<tr>
    <td>1</td><td>1</td>
</tr>
<tr>
    <td>2</td><td>2</td>
</tr>
<tr>
    <td>3</td><td>3</td>
</tr>
<tr>
    <td>4</td><td>4</td>
</tr>
<tr>
    <td>5</td><td>5</td>
</tr>

这适用于Chrome甚至IE10。 但不是IE9。

1 个答案:

答案 0 :(得分:0)

如果使用百分比

,请尝试使用像素而不是高度百分比
相关问题