“`”

首先:CSS规范规定,每个元素都有display属性,确定该元素的类型,每个元素都有默认的display值,如div的display默认值为“block”,则为“块级”元素; span默认display属性值为“inline”,是“行内”元素。
(1)行内元素有:a b span select strong(强调的语气)img input(内联元素)
(2)块级元素有:div ul ol li dl dt dd h1 h2 h3 h4…p
(3)常见的空元素:<br>

<hr>

<img> <input> <link> <meta> 鲜为人知的是:<area> <base> <col> <command></command> <embed> <keygen> <param> <source> <track></track> <wbr> "“`

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.