块元素

段落 div p
列表 ul ol li dl dd dt
表单 form fieldset legend optgroup option output
标题 h1-h6
骨架 html body
h5容器 header footer nav aside section article
h5多媒体 figure figcaption
h5功能性 summary details
其他 hr pre bolckquote address

内联元素

表单
input(inline-block)
button(内联替换元素)
select(内联替换元素)
textarea(内联替换元素)
img(内联替换元素)

其他 a span br

 

行内替换元素, height/width/padding/margin均可用,类似于inline-block元素

行内非替换元素,margin top/bottom无效,padding和margin left/right有效

相关文章:

  • 2021-11-17
  • 2022-02-20
  • 2021-11-22
  • 2021-10-10
  • 2021-12-08
  • 2022-01-03
  • 2022-02-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2021-08-17
  • 2021-12-23
  • 2022-02-26
相关资源
相似解决方案