6. HTML 全局属性

属性名 含义
class class 规定元素的一个或多个类名(引用样式表中的类)
class 属性不能在以下 HTML 元素中使用:base, head, html, meta, param, script, style 以及 title。
id 规定元素的唯一 id。
dir 规定元素中内容的文本方向。
注意:dir 属性在以下标签中无效:base, br, frame, frameset, hr, iframe, param 以及 script。
style 规定元素的行内 CSS 样式。
title 规定有关元素的额外信息。
lang 规定元素内容的语言,值是语言代码,如 cn、zh。
注意:lang 属性在以下标签中无效:base, br, frame, frameset, hr, iframe, param 以及 script。

results matching ""

    No results matching ""