CSS: clear on inline elements

后端 未结 1 729
不思量自难忘°
不思量自难忘° 2021-01-14 12:35

Check this JSFiddle:

\"This
The contents         


        
相关标签:
1条回答
  • 2021-01-14 12:51

    It's simple: clear only applies to block-level elements.

    'clear'

    Applies to: block-level elements

    Block-level elements are defined as

    Block-level elements are those elements of the source document that are formatted visually as blocks (e.g., paragraphs). The following values of the display property make an element block-level: block, list-item, and table.

    0 讨论(0)
提交回复
热议问题