Home>Article>Web Front-end> How to introduce css files into vue components

How to introduce css files into vue components

醉折花枝作酒筹
醉折花枝作酒筹 Original
2021-04-28 17:20:57 10118browse

In vue, you can use the "@import" rule to introduce css files. You only need to add "@import css style address" to the style tag. The "@import" rule is used to import style rules from other style sheets and must precede all other types of rules.

How to introduce css files into vue components

The operating environment of this tutorial: windows7 system, vue2.9.6 version, DELL G3 computer.

Just add @import to the style to import resources

[Related recommendations: "vue.js Tutorial"]

The above is the detailed content of How to introduce css files into vue components. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn