登录 | 注册 | FAQ
Anonymous

Html table fixed headers

+ 发表回复

4 篇帖子 分页: 1 / 1


Html table fixed headers

suvis10@hotmail.com » 周一 8月 25, 2014 3:50 pm

HI All

I have created a large html dynamic table using jquery .
Now my query is here , How to make a fixed html table header while scrolling .

can any one please hepl me how to solve ??
头像

suvis10@hotmail.com

  • 帖子: 1
  • 注册: 周一 8月 25, 2014 3:45 pm

Re: Html table fixed headers

XainPro » 周六 9月 20, 2014 9:26 am

there are lot's of methods to do that would you like to share your code ?

read the thead maybe this would solve your problem do it like this

<table>
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Sum</td>
<td>$180</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm

Re: Html table fixed headers

Farhin Qureshi » 周五 1月 20, 2017 11:52 am

Hi,
You can use jQuery.floatThead (demos-http://mkoryak.github.io/floatThead/) which is very usefull for floating header, it can work with DataTables too, and can even work inside an overflow: auto container.
头像

Farhin Qureshi

  • 帖子: 45
  • 注册: 周二 1月 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com

Re: Html table fixed headers

frickarolos » 周五 8月 25, 2017 11:04 am

I would advise you to use DIV tables instead of the classic table tags. Here you can generate and style them easily: http://divtable.com/table-styler/
头像

frickarolos

  • 帖子: 2
  • 注册: 周五 8月 25, 2017 10:43 am


+ 发表回复

分页: 1 / 1