【文件属性】:
文件名称:Sticky-Stuff:一个用于粘性表头的 jQuery 插件
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-01 00:43:38
JavaScript
##粘性的东西
用于持久表头的 jQuery 插件。
入门
重置表的 css 并将克隆的标题设置为顶部
table {
margin : 0 ;
padding : 0 ;
border : 0 ;
}
. stickystuff-cloned {
margin-top : 0 ;
position : fixed;
top : 0 ;
z-index : 999 ;
}
$ ( "table" ) . stickystuff ( ) ;
开/关/销毁
打开持久标题
$ ( "table" ) . stickystuff ( 'enable' ) ;
关闭持久标题
$ ( "table" ) . stickystuff ( 'disable' ) ;
销毁持久标头,解除绑定事件侦听器并从 DOM 中删除克隆标头
$ ( "table" ) . st
【文件预览】:
Sticky-Stuff-master
----stickystuff.js(6KB)
----demo.html(1KB)
----readme.md(1KB)