kenyeec / elefixed Goto Github PK
View Code? Open in Web Editor NEWLet element fixed. Like table's thead fixed
License: MIT License
Let element fixed. Like table's thead fixed
License: MIT License
你好,多谢你的code,我在本地使用chrome已经test成功,赞一个!
我想在表格上方添加一个button,然后上拉页面时,button和表头相对位置不发生变化,且均固定在页面顶部,请问如何实现?
如果赐教,不胜感激~
感谢作者的插件,满足功能哈,,
滚动页面后,再刷新页面,这时,表头没有出来,查阅源代码发现关键函数handler();
嗯,页面加载后执行eleFixed.handler(),即可手动显示表头。
如:
//固定表头 var $jfTableHead = $("#jfTableHead"); eleFixed.push({ target: $("#jfTableHead")[0], offsetTop: $jfTableHead.offset().top - 66 }); //浏览器滚动后,刷新浏览器时,重新将表头呈现出来 eleFixed.handler();
路过反映一下,应该是 destroy 而不是 distroy……
(另外同求固定列)
您好,如果表格高度固定,表格内容滚动,您的插件要怎么在这种情况下固定表头?我使用的时候,只有在页面滚动的时候才能表头固定。
固定表头两行,表头的border会消失,是transform影响的?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.