学习呦
14 10月 2025 1 min read

幽灵空白节点

Written by 米豆

HTML5规范

“Each line box starts with a zero-width inline box with the element’s font and line height properties. We call that imaginary box a ‘strut’.”

每个行框盒子(line box)都以一个具有元素的字体和行高属性的零宽度行内框开始。我们称这个假想的盒子为”支柱”。

几个名词解释:

inline box:内联盒子,是行内的盒子

line box:行框盒子,很多内联盒子(inline box)组成的。相当于这么些内联盒子的外部包裹的容器(大盒子)

↑