阅读背景:

html a标签 块,a标签为什么能够包含块级元素?-_Madmoiselle.may的博客

来源:互联网 

When an inline box contains an in-flow block-level box, the inline box (and its inline ancestors within the same line box) are broken around the block-level box (and any block-level siblings that are consecutive or separated only by collapsible whitespace and/or out-of-flow elements), splitting the inline box into two boxes (even if either side is empty), one on each side of the block-level box(es). The line boxes before the break and after the break are enclosed in anonymous block boxes, and the block-level box becomes a sibling of those anonymous boxes. When such an inline box is affected by relative positioning, any resulting translation also affects the block-level box contained in the inline box.When an inline box contains an in-flow bloc




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: