Home >Web Front-end >CSS Tutorial >CSS @import Usage: Rules
@import: Rule imports another style sheet into the current style sheet. It should appear before any rules at the beginning of the style sheet, and its value is a URL.
You could write like this:
<style> <!-- @import "mystyle.css"; or @import url("mystyle.css"); .......other CSS rules ..... --> </style>
@import The importance of the rule is that it allows you to develop your stylesheet using a modular approach. You can create various style sheets and include them wherever you need.
The above is the detailed content of CSS @import Usage: Rules. For more information, please follow other related articles on the PHP Chinese website!