用HTML制作网页怎样把表格置顶??

用HTML制作网页怎样把表格置顶??,第1张

html中表格中的文字可以置顶、居中、底部显示

置顶需要用到属性valign="top"

具体 *** 作代码如下:

<table>

    <tr>

        <td height="100" valign="top">

            文字

        </td>

    <td height="100">

    </tr>

</table>

jsp页面锁定表格的第一行不动的方法是通过js实现的。

1、html代码如下:

<div class="clscroll corner-header">

<table>

<tr>

<th></th>

</tr>

</table>

</div>

<div class="clscroll column-headers" id="clscroll-column-headers">

<table>

<tr>

<th>Bus</th>

<th>Plane</th>

<th>Boat</th>

<th>Bicycle</th>

</tr>

</table>

</div>

<div class="clscroll row-headers" id="clscroll-row-headers">


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/6271234.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-19
下一篇 2023-03-19

发表评论

登录后才能评论

评论列表(0条)

保存