In CSS, you can use the "@charset" rule to set the character encoding to "utf-8". This rule can specify the character encoding used in the style file. The syntax is "@charset "UTF-8" ";" The "@charset" rule must be the first element in the stylesheet and must not be preceded by any characters.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
In CSS, you can use the "@charset" rule to set the character encoding to "utf-8".
@charset attribute specifies the character encoding used in style files (.css suffix) and can only be used in CSS files.
It must be the first element in the style sheet, and there must be no characters in front of it, not even comments.
If multiple @charset rules are declared, only the first one will be used, and it cannot be used in HTML elements or HTML pages, that is, it cannot be used within the