gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 15:23:58 26 4
gpt4 key购买 nike

谁能给我一个基于 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com