$("div").scroll(function(){
if($(this).attr("style").indexOf("overflow")>-1){
var scrollTop = this.scrollTop;
$(this).find("thead").attr("style","transform: translateY(" + scrollTop + "px);")
};
});
jquery固定table的表头thead
最新推荐文章于 2018-09-25 19:57:20 发布