html - 如何将 table 操纵成这种形状?

标签 html css

<分区>


想改进这个问题吗? 通过 editing this post 添加细节并澄清问题.

关闭 7 年前

我需要在 HTML 中创建这个形状。 我刚刚了解了 colspan 和 rowspan 但这让我心烦意乱...... 感谢您的帮助。

表: enter image description here

最佳答案

你不能像倒L形那样合并一个td。相反,这可以通过调整边框样式来完成。

table {
border-collapse: collapse;
}
<table width="300" border="1px">
<tr>
    <td colspan="2" height="30" style="border-bottom: 0">
        &nbsp;
    </td>
</tr>
<tr>
    <td width="30" style="border-top: 0">
        &nbsp;
    </td>
    <td height="200">
        &nbsp;
    </td>
</tr>
</table>

关于html - 如何将 table 操纵成这种形状?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33585865/

上一篇:javascript - 如何只针对一个浏览器?

下一篇:html - 文本对齐在 QTextDocument 的 setHTML 中不起作用?

相关文章:

html - 如何使用 "border"添加到图像边框

html - float 元素落在另一个 float 元素下方

css - 将 div 排成行

html - 多个带有边距以填充父级宽度的 div

css 覆盖宽度

css - 保持输入占位符始终可见

javascript不创建输入框

javascript - 如何在登录 HTML 页面中使用 XML 匹配凭据?

html - golang html/template ExecuteTemplate errant byte 它来自哪里?

html - 悬停时转换转换后按钮快速返回