A line-box is an imaginary rectangle that contains all the inline boxes that make up a line in the containing block-level element.
line - box是一个假想的矩形框,包含在此块级包含元素内连成一线的所有inline box。
In the case that the ancestor is an inline element, the containing block is the bounding box around the padding boxes of the first and the last inline boxes generated for that element.
在祖先是行内元素的情况下,包含块是由第一个和最后一个内联元素的内边距盒的包含盒构成。
Flexible Box Layout (a. k. a. Flexbox) or display: inline-block and regular text wrapping can help with that.
弹性盒布局(即Flexbox),或者display: inline-block 加上常规的文本折行行为,都可以实现这一点。
应用推荐