可滚动表 [英] Scrollable table
问题描述
2005年,Stu Nichols发布了此条目关于具有固定标题与滚动表中的行.
In 2005, Stu Nichols posted this entry about have a fixed header with scrolling rows in a table.
此任务是否有更新的解决方案,还是Stu在2005年写的仍然是最新的?
Is there a more updated solution to this task, or is what Stu wrote in 2005 still considered the latest?
推荐答案
与现有AFAIK一样.取决于您需要支持的浏览器,可以使用CSS将overflow: scroll
附加到tbody元素,但这不是CSS规范中的正式规定,只能半可靠地工作. Firefox似乎了解它,而且我相信Chrome也可以,但IE会忽略它.
That's as current as exists AFAIK. Depending on which browsers you need to support you can use CSS to attach an overflow: scroll
to the tbody element, but it's not officially in the CSS spec and only works semi-reliably. Firefox seems to understand it, and I believe Chrome will as well, but IE ignores it enitrely.
这篇关于可滚动表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!