HTML表始终可见行 [英] HTML Table Always visible row

查看:92
本文介绍了HTML表始终可见行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的导师,



我在设计我的Webform时陷入困境。我正在使用HTML表格,我想让表格的一行总是可见。我可以使用div来做,但我想在表格行上应用相同的内容。



请建议。

Dear Mentors,

I am stuck somewhere while designing my Webform.I am using HTML tables and i want to make one row of the table as ALWAYS VISIBLE. I am able to do it using divs but i want to apply the same on the table row.

Please suggest.

推荐答案

首先,看一下这个演示: http://pics.cssbakery.com/treats /scrollingtable/tableTest6.php [ ^ ]。



足够好吗?



这里解释如下:http://www.cssbakery.com/2010/12/css-scrolling-tables-with-fixed.html [ ^ ]。



-SA
First of all, look at this demo: http://pics.cssbakery.com/treats/scrollingtable/tableTest6.php[^].

Good enough?

This is explained here: http://www.cssbakery.com/2010/12/css-scrolling-tables-with-fixed.html[^].

—SA


Use that row under ‘thead’ tag. Thead tag is used for giving heading to the table. So when you scroll your table, heading part remains visible always.

Like :-

<table>
<thead>
<tr><td>name</td>   <td>id</td></tr>
</thead>
<tr><td>ram</td> <td>2</td></tr>
</table>

Rest upon you how you design using css.


这篇关于HTML表始终可见行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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