html - tag within a table tag
问题描述
解决方案
只需使用:
td{
width:20%
}
td{
width:20%;
}
<table width="100%">
<tr height="40">
<td style=" border: 2px dotted orange" colspan="5" height="auto" align="center">
<p>Table-1</p>
</td>
<tr height="40">
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
</tr>
<tr height="40">
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
</tr>
</table>
<br />
<br />
<br />
<table width="100%">
<tr height="40">
<td style=" border: 2px dotted orange" colspan="5" height="auto" align="center">
<p>Table-2</p>
</td>
<tr height="40">
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
</tr>
<tr height="40">
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"><a href="http://www.google.com">Search</a></td>
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
<td style=" border: 2px dotted orange"></td>
</tr>
</table>
推荐阅读
- aws-sdk - 浏览器中的 ECSCredentials
- python - 如何在python中重塑数组?
- django - 如何为 django 创建自定义管理面板
- amazon-web-services - 如何在 Cloudformation 中设置 EMR 步骤并发?
- python - 多选项卡 Excel 工作表,1 列中的唯一条目,以另一列中的数据为名称创建新文件,全部带有标题
- kotlin - Kotlin 中的铸造(AS),不适用于对象
- excel - 如何用VBA中的变量完全表达范围?
- javascript - 引发了跨域错误。react 无权访问 react 开发中的实际错误对象
- reactjs - 即使我们不向它传递道具,组件也会重新渲染吗?
- .net-core - 控制台项目中的 .net 核心测试