Difference between inline box and atomic inline box

后端 未结 2 1368
深忆病人
深忆病人 2021-01-25 07:47

Consider the following code:

div{ display: inline-block; }

div block is generated atomic inline-level box now. As

2条回答
  •  难免孤独
    2021-01-25 08:12

    Indeed. Referring to Visual Formatting Model

    Some emphasized text

    anonymous inline boxes inherit inheritable properties from their block parent box. Non-inherited properties have their initial value. In the example, the color of the anonymous inline boxes is inherited from the P, but the background is transparent

提交回复
热议问题