Sets the character set for an external style sheet.
dhtml语法
HTML | @charset sCharacterSet |
---|
Scripting | N/A |
---|
DHTML可能的值
remarks
the rule has no default value.
expressions can be used in place of the preceding value(s), as of microsoft® internet explorer 5. for more information, see about dynamic properties.
you can use only one @charset rule in an external style sheet. the rule must appear at the top of the file, cannot be preceded by any characters, and cannot be included in an embedded style sheet.
DHTML代码范例
The following example implements the @charset rule.
@charset "Windows-1251";
是否符合公共标准
This rule is defined in
Cascading Style Sheets (CSS), Level 2 (CSS2) .