谁能根据 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/