冻结TH头和滚动数据 [英] Freeze TH header and scrolling data
本文介绍了冻结TH头和滚动数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个html表格,我想冻结标题行th标签来滚动数据。我该怎么做?我需要使用Dom吗?
Thanks !!
I have a html table and I want to freeze the header row th tag for scrolling the data. How I can do that? Does I need to use the Dom? Thanks !!
推荐答案
我的解决方案是使用两个表格并修复列宽。下表是一个可滚动的div,没有标题。
My solution is to use two tables and fix the column widths. The lower table is in a scrollable div and has no header.
这篇关于冻结TH头和滚动数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文