如果做一个Table 固定的行和列的头, bootstrap

Eniak 2014-06-02 10:12:01
想做做一个table,

这个table里面有固定的行和列,可以用华标拖动。


比如 下面是一个 6行5列的表,如果有一个3行3列的局部视窗,在拖动划标的时候,要求<th>里面的东东都是固定的,而<td>里面的数值是要变的。

想问问,有什么办法做呢,最好用 bootstrap, 谢谢了


<table>
<tr>
<th>固定的</th>
<th>固定的</th>
<th>固定的</th>
<th>固定的</th>
<th>固定的</th>
</tr>

<tr>
<th>固定的</td>
<td>滑动的</td>
<td>滑动的</td>
<td>滑动的</td>
<td>滑动的</td>
</tr>

<tr>
<th>固定的</td>
<td>滑动的</td>
<td>滑动的</td>
<td>滑动的</td>
<td>滑动的</td>
</tr>

<tr>
<th>固定的</td>
<td>滑动的</td>
<td>滑动的</td>
<td>滑动的</td>
<td>滑动的</td>
</tr>

<tr>
<th>固定的</td>
<td>滑动的</td>
<td>滑动的</td>
<td>滑动的</td>
<td>滑动的</td>
</tr>

<tr>
<th>固定的</td>
<td>滑动的</td>
<td>滑动的</td>
<td>滑动的</td>
<td>滑动的</td>
</tr>


</table>
...全文
1018 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
maomaochongdu 2015-08-04
  • 打赏
  • 举报
回复
麻烦问下,最后是怎么解决列冻结的
color2002 2014-06-30
  • 打赏
  • 举报
回复
http://shangqing.wswj.net/InfoQuery2/I02.aspx 点一下查询,看一下显示页面的源码就可以了,你要的应该是这样的效果

61,128

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧