html - 为什么空单元格不显示边框?

标签 html css specifications

谁能根据 CSS 或 HTML 规范给我解释一下吗?

最佳答案

来自 W3C 网站,链接:http://www.w3.org/TR/REC-html32.html

Tables are commonly rendered in bas-relief, raised up with the outer border as a bevel, and individual cells inset into this raised surface. Borders around individual cells are only drawn if the cell has explicit content. White space doesn't count for this purpose with the exception of  .

希望能够解答您的疑问。一般来说,不要将任何 div、span 或 td 留空,放置   并使用 CSS 设置字体大小和高度来掩盖与高度相关的问题。

关于html - 为什么空单元格不显示边框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5209948/

相关文章:

python - 在检查粗体时从 HTML 文件中提取所有文本 (Python)

html - 使用 alignleft, alignright 格式化段落

html - Bootstrap Modal 不适用于 iOS 设备

css - 没有边距的内联 block ?

jquery - 使用 jQuery 添加/删除基于屏幕分辨率的无序列表

java - enum.values() - 是返回枚举确定性的顺序

JQuery 删除动态表上的行

html - 由非水平链接组成的导航栏

javascript - 如何检查某个 DOM 元素是否在另一个 DOM 元素树中?

c - uefi 规范示例提到了 EfiCoreImageHandle。如何获得?