首页 > 代码库 > 常见块元素和内联元素
常见块元素和内联元素
块元素
段落 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元素
行内非替换元素,padding top/bottom, margin top/bottom无效,只能padding left,right改变宽度
常见块元素和内联元素
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。