我想在带有固定标题的表格中添加垂直和水平滚动条。通过使用 thead
和 tbody
标签,我可以在 firefox 中添加滚动条,但 IE 不支持 tbody中的
。 IE8 不支持 css 表达式,您能告诉我如何实现吗?overflow:auto 属性
最佳答案
使用 CSS 应该很容易
div.scrollWrapper{
height:250px;
width:200px;
overflow:scroll;
}
<div class="scrollWrapper">
<table >
<tbody height="xxx">
<tr>......
</tbody>
</table>
</div>
关于html - 给表格添加滚动条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1320914/