冻结html表头并离开大多数列 [英] freeze html table headers and left most column

查看:49
本文介绍了冻结html表头并离开大多数列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在使用html表来显示记录,我想冻结标题和表格的第一列,我尝试了一些插件,它运行良好用Ie而不用chrome

是否有任何插件可以在IE和Chrome中同时工作?

解决方案

改变你的样式就像已修复

 <   table  >  
< tr < span class =code-keyword>>
< td style = position:fixed; > fgnhfnfvn < / td >
< td > fhfh < / td >

< < span class =code-leadattribute> / tr >
< tr >
< td style = position:fixed; > fnfnf < / td >
< td > ghngn < / td >

< / tr >
< span class =code-keyword>< / table >


将标题的css属性用作position:absolute;


这些链接可以帮助你解决....



link1


LINK2

Hi
I am using a html table to display the records and I want to freeze the header and the first column of my table and I tried with some plugins where it works well with Ie and not with chrome
Is there any plug in which works both in IE and chrome as well?

解决方案

Change ur Style like fixed

<table>
<tr>
<td style="position: fixed;">fgnhfnfvn</td>
<td>fhfh</td>

</tr>
<tr>
<td style="position: fixed;">fnfnf</td>
<td>ghngn</td>

</tr>
</table>


Use css property for headers as position:absolute;


may these links can help u out....

link1

link2


这篇关于冻结html表头并离开大多数列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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