固定表格布局
来源:互联网 发布:熊猫智能采集软件 编辑:程序博客网 时间:2024/05/01 10:41
css:
table{
table-layout:fixed;
}
.r{
border-right:solid 0.1px gainsboro;
}
.b{
border-bottom:solid 0.1px gainsboro;
}
html:
<table cellpadding="0" cellspacing="0" style="border:solid 0.1px gainsboro;width:400px;">
<thead>
<tr height="40px">
<th class="r b" style="width:75px">ID</th>
<th class="r b" style="width:200px">Name</th>
<th class="r b" style="width:70px">Job</th>
<th class="b" style="width:55px">Email</th>
</tr>
</thead>
<tbody>
<tr height="40px">
<td class="r b" style="width:75px">0001</td>
<td class="r b" style="width:75px">Johnny Five</td>
<td class="r b" style="width:75px">Robotin'</td>
<td class="b" style="width:75px">need@input.com</td>
</tr>
<tr height="40px">
<td class="r" style="width:75px">0002</td>
<td class="r" style="width:75px">Super Superlonglastnamesmith</td>
<td class="r" style="width:75px">Doin' stuff</td>
<td style="width:75px">doing@stuff.com</td>
</tr>
</tbody>
</table>
- 固定表格布局
- html的自动表格布局和固定表格布局
- 转载:固定表格布局下的各浏览器对与表格宽度计算算法不同
- table表格布局,表头固定不动,表身超出可滑动
- 固定表格大小
- table表格固定
- EXCEL中固定表格
- 固定表格头部信息
- 固定表格宽度
- 如何固定表格宽度
- 固定表头表格
- 固定表格行列(expression)
- CSS固定表格表头
- 表格列固定
- bootstrap 表格表头固定
- 表格布局
- 表格布局
- 表格布局
- 110. Balanced Binary Tree
- JZOJ5390. 【NOIP2017提高A组模拟9.26】逗气
- linux 下常用命令
- RBAC权限管理
- javascript数组查重
- 固定表格布局
- Ubuntu安装Hadoop
- Uncaught ReferenceError: $ is not defined
- 测试下项目,帮大佬转发下
- Spring配置定时任务的三种方式
- BM SGBM 设置参数解释
- 09.28周四
- 使用IDEA创建一个Spring Boot Maven项目
- UI游戏框架(二)