问题描述
我知道这个问题已被问过几次,但我找不到一个令人满意的x浏览器解决方案:(
i know this question has been asked several times but i couldn't find a satisfying, x-browser solution yet :(
我认为最简单的方法一个具有固定头的可滚动表应该使用2个表:
(1表示头,1表示内容),并且同步它们我试过了,但是在布局中总是有轻微的毛刺(在firefox和eg之间。 ie8)
i thought the easiest way to acomplish a scrollable table with fixed header should be using 2 tables:(1 for header, 1 for the content) and kinda sync them. i've tried that but there's always slight glitches in the layout (between firefox and eg. ie8)
所以我在寻找一个简单的防弹解决方案 - 任何人谁可以帮助我?
so i'm looking for a simple and bulletproof solution - anyone who can help me?
thx
推荐答案
为什么不试试这个,。如果它在所有的目标浏览器看起来不错,那么它可能是去的方式。除此之外,我有两个Ok经验的两个 - 表布局设计,但是像你说的...它不是完全防弹。
Why not try this, http://fixedheadertable.com/livedemos/. If it looks good in all your target browsers, then it's probably the way to go. Other than that, I've had Ok experience with the two-table layout design, but like you said... it's not exactly bulletproof.
这篇关于jQuery / css / html:带有固定标题的scrollable表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!