你现在的位置 -> html » 实验室

HTML 4 Block-Level and Inline-Level Elements

星期三, 三月 3rd, 2010, 16:17 | YSjia 点击1686次

对于Block与Inline级的元素经常会混在一起,现在就梳理一下这些元素:

对于Block级的元素来说,通常会在渲染时(rendered)会新起一行,以下元素是基础Block级元素:

  • ADDRESS – Address
  • BLOCKQUOTE – Block quotation
  • CENTER – Centered block
  • DIR – Directory list
  • DIV – Generic block-level container
  • DL – Definition list
  • FIELDSET – Form control group
  • FORM – Interactive form
  • H1 – Level-one heading
  • H2 – Level-two heading
  • H3 – Level-three heading
  • H4 – Level-four heading
  • H5 – Level-five heading
  • H6 – Level-six heading
  • HR – Horizontal rule
  • ISINDEX – Input prompt
  • MENU – Menu list
  • NOFRAMES – Frames alternate content
  • NOSCRIPT – Alternate script content
  • OL – Ordered list
  • P – Paragraph
  • PRE – Preformatted text
  • TABLE – Table
  • UL – Unordered list

以下元素如果包含了Block级元素后,我们可以认为它们也是Block级:

  • DD – Definition description
  • DT – Definition term
  • FRAMESET – Frameset
  • LI – List item
  • TBODY – Table body
  • TD – Table data cell
  • TFOOT – Table foot
  • TH – Table header cell
  • THEAD – Table head
  • TR – Table row

以下元素可以认为是Block级,也可以认为是Inline级。但是当它们作为Inline元素,这些元素就不能再包含Block级的元素:

注:斜体字为非Strict定义的元素。

引用来自:WDG



如果你喜欢请+1 ^_^

Tags:

留下你的足迹

分类

相关文章

  • No Related Post

随机作品

GlobalMarket

GlobalMarket.com Web Design

曾经为自己设计的博客

博客设计
清新爽快风格

EYE

很漂亮的眼睛,很有神,清澈透明!

Photoshop CS3

Wacom

UAT9