Block-Level vs. Inline Elements
来源:互联网 发布:编程开发软件 编辑:程序博客网 时间:2024/05/22 14:13
http://www.ahuka.com/?page_id=119
A block-level element is an HTML tag (such as p
, table
, h1
or div
) that generates a break line. A block-level element has five spacing properties: height
, width
, margin
, border
and padding
. An inline element, such as a span or anchor, doesn’t generate a break line and isn’t as flexible a container as a block-level element.A block-level element is not allowed inside an inline element. ... Top of the hierarchy is the div
tag. This tag can contain any other block-level element. But you cannot contain a div inside another block-level element.
A partial list of each type of element
With the clues we now have, let’s compile a partial list of the elements on
each type. First, the block-level elements:
- div
- h1…h6
- p
- ul
- ol
- li
- table
- tr
- td
- th
- blockquote
Now, the inline elements:
- i
- b
- a href
- a name
- em
- strong
- q
- Block-Level vs. Inline Elements
- Block-level elments & Inline-level elements
- Block-Level vs. Inline Elements(块级元素和内联元素对比)
- display: block vs inline vs inline-block
- 块级元素(Block-Level Elements)
- inline block inline-block
- block inline inline-block
- 浮动布局 VS 基于display:inline-block的列表布局
- inline-block
- inline-block
- inline-block
- inline-block
- block & inline
- inline-block
- inline-block
- inline-block
- display:inline、block、inline-block
- display:inline、block、inline-block
- linux访问windows的共享目录
- 磁盘配额
- php自动读取文件夹下所有图片并分页显示
- SharedPreferes
- 多表关联的update语句
- Block-Level vs. Inline Elements
- Android Timer编写方式深解(貌似使用Thread不行,得使用Timer方式)
- android 背景圆角以及图片圆角处理
- c#修改系统时间的方法
- windows phone7要出师了!特此留念
- 一步一步写算法(开篇)
- 15.5 创建动画
- Mybatis 入门学习,简单例子
- Windows下建立隐藏超级用户的步骤