首页 > 其他 > 详细

常见块元素和内联元素

时间:2016-12-25 20:54:12      阅读:183      评论:0      收藏:0      [点我收藏+]

块元素

段落 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改变宽度

常见块元素和内联元素

原文:http://www.cnblogs.com/mengff/p/6220412.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!