Importing CSS with @import in conjunction with @charset
If I use the following at the top of my CSS file home.css:
@import "overall.css";
Do I need to (within home.css) redeclare @charset "utf-8";
or is this applied to the current CSS document when it's be开发者_JS百科en defined within the included CSS?
You should define it at the top of the first CSS file, the it will apply to all that are included using @import.
精彩评论