html - 将表格宽度设置为最小
问题描述
我想知道如何使用 HTML 将表格的宽度更改为最小,以便表格显示为
N
A
M
E
N
A
M
E
H
E
R
E
这是代码
<table>
<tr>
<th>Name</th>
</tr>
<tr>
<td>Name here</td>
</tr>
</table>
解决方案
如果在每个字符之间添加空格,它将起作用。
<table width="1px">
<tr>
<th>N a m e</th>
</tr>
<tr>
<td>N a m e h e r e</td>
</tr>
</table>
推荐阅读
- r - RShiny 错误:比较 (3) 仅适用于原子和列表类型
- python - 向量化熊猫数据框操作
- sql - SQL count duplicates in another column based on one field per row
- python - 如何在 selenium python 中使用多次尝试
- api - 从点云到 Revit 链接的 Revit 变换矩阵
- c++ - C ++ regex_search 与 C 样式数组匹配
- nativescript - 使用 Nativescript 从文本消息中打开文件?
- c# - Xamarin 构建已取消无法运行
- python - 无法在输出中添加空格
- angular - 角度形式不返回绑定对象