jQuery / css / html:带有固定标题的scrollable表 [英] jQuery/css/html: scrollable table with fixed header

查看:165
本文介绍了jQuery / css / html:带有固定标题的scrollable表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题已被问过几次,但我找不到一个令人满意的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

推荐答案

为什么不试试这个, http://fixedheadertable.com/livedemos/ 。如果它在所有的目标浏览器看起来不错,那么它可能是去的方式。除此之外,我有两个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表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆