Set the encoding of the style sheet to Unicode UTF-8:
@charset "UTF-8";
The @charset
rule specifies the character encoding used in the style sheet.
The @charset
rule must be the first element in the style sheet and not be preceded by any character. If several @charset
rules are defined, only the first one is used. The @charset
rule cannot be used inside a style attribute (on an HTML element), or inside the <style> element where the character set of the HTML page is relevant.
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
@charset | 2.0 | 12.0 | 1.5 | 4.0 | 9.0 |
@charset "
charset";
Value | Description |
---|---|
charset | Specifies the character encoding to use |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!