Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

滚动页面后刷新页面,可以执行eleFixed.handler()来实现显示表头 #8

Open
zhangdaren opened this issue May 27, 2019 · 2 comments

Comments

@zhangdaren
Copy link

感谢作者的插件,满足功能哈,,

滚动页面后,再刷新页面,这时,表头没有出来,查阅源代码发现关键函数handler();
嗯,页面加载后执行eleFixed.handler(),即可手动显示表头。

如:
//固定表头 var $jfTableHead = $("#jfTableHead"); eleFixed.push({ target: $("#jfTableHead")[0], offsetTop: $jfTableHead.offset().top - 66 }); //浏览器滚动后,刷新浏览器时,重新将表头呈现出来 eleFixed.handler();

@KenyeeC
Copy link
Owner

KenyeeC commented May 28, 2019

感谢作者的插件,满足功能哈,,

滚动页面后,再刷新页面,这时,表头没有出来,查阅源代码发现关键函数handler();
嗯,页面加载后执行eleFixed.handler(),即可手动显示表头。

如:
//固定表头 var $jfTableHead = $("#jfTableHead"); eleFixed.push({ target: $("#jfTableHead")[0], offsetTop: $jfTableHead.offset().top - 66 }); //浏览器滚动后,刷新浏览器时,重新将表头呈现出来 eleFixed.handler();

为什么不提交个 PR 呢😸

@zhangdaren
Copy link
Author

哈哈,好的,,只是觉得没这个方便咯~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants