Blogger Information
Blog 5
fans 0
comment 0
visits 4306
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
HTML 行内元素、块元素、行内块元素总览
Dream698
Original
919 people have browsed it

行内元素:

特点:
★在一行显示
★不能直接设置宽高
★宽高为内容撑开的宽高
★行内元素可以定义左右的内外边距,上下会被忽略掉

实例

span、img、a、lable、input、abbr(缩写)、em(强调)、big、cite(引用)、i(斜体)、q(短引用)、textarea、select、small、sub、sup,strong、u(下划线)、button(默认display:inline-block)

运行实例 »

点击 "运行实例" 按钮查看在线实例

块级元素


实例

div、p、h1~h6、ul、ol、dl、li、dd、table、hr、blockquote、address、table、menu、pre,HTML5新增的header、section、aside、footer

运行实例 »

点击 "运行实例" 按钮查看在线实例

三、行内块元素
典型代表:img,input


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments