固定头表不滚动(jquery) [英] Fixed header table does not scroll (jquery)

查看:103
本文介绍了固定头表不滚动(jquery)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查看此 演示

I 此处

对于某些原因我的样例表不滚动,我做错了什么?

For some reason my sample table is not scrolling, what am I doing wrong?

初始化在javascript代码底部完成:

Initialization is done at the bottom of the javascript code:

$("#fixed").fixedHeaderTable();
$("#fixed").fixedHeaderTable("show");


推荐答案

您似乎缺少必要的CSS演示文件,我已将它们添加到这个小提琴,它现在似乎为我工作。

It looks like you were missing the required CSS from the demo files, I've added them to this fiddle and it seems to work for me now.

如果您查看 Github网页该项目中有一个演示文件夹,在那里我看看 test.html 它包括以下CSS引用:

If you look at the Github page for the project, there's a demo folder, in there I had a look at test.html it included the following CSS references:

    <link href="../css/defaultTheme.css" rel="stylesheet" media="screen" />
    <link href="css/myTheme.css" rel="stylesheet" media="screen" />

我不知道具体要求哪些样式才能工作,而不是样式只是为了美容目的,因为我没有时间(我只是倾销所有的CSS从这两个文件在小提琴),但希望你应该能够明白:)

I'm not sure specifically which styles are required for it to work as opposed to styles that are there just for cosmetic purposes as I don't have time (I just dumped all the CSS from those two files in the fiddle) but hopefully you should be able to figure that out :)

这篇关于固定头表不滚动(jquery)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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