静态Html表头文件代码 [英] Static Html Table Header Code

查看:107
本文介绍了静态Html表头文件代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的表格标题HTML:

我想要这个html表格的标题固定,所以我向下滚动并且标题保持静态。

 < table style =width:425px; height:4810px; BORDER = 0 > 
< tbody>
< tr class =tableizer-firstrow>
< div style =text-align:left; text-color:#00A599;>< span style =color:#00a599;> 2011年9月纪念日< / span>< DIV>
< / th>
< / tr>
< tr>
< th class =style1style =text-align:centerwidth =143> Employee< / th>< th style =text-align:centerwidth =137 >部门< th>< th style =text-align:centerwidth =92> DOH< th width =49>年份< th>
< / tr>
< tr>


解决方案

从您的问题猜测您需要固定标题? / p>

查看 jQuery可滚动表格插件,如果你可以在你的解决方案中使用jQuery。


I want to have the headers of this html table fixed, so as I scroll down and the headers remain static.

My table header HTML:

<table style="width: 425px; height: 4810px;" border="0">
<tbody>
<tr class="tableizer-firstrow">
<th colspan="3">
<div style="text-align: left; text-color: #00A599;"><span style="color: #00a599;">SEPTEMBER 2011 Anniversaries</span></div>
</th>
</tr>
<tr>
<th class="style1" style="text-align: center" width="143">Employee</th><th style="text-align: center" width="137">Department</th><th style="text-align: center" width="92">DOH</th><th width="49">Years</th>
</tr>
<tr>

解决方案

Guessing from your question that you want fixed headers?

Take a look at the jQuery Scrollable Table Plugin if you can use jQuery in your solution.

这篇关于静态Html表头文件代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆