Home > Web Front-end > Vue.js > How to introduce css files into vue components

How to introduce css files into vue components

醉折花枝作酒筹
Release: 2023-01-13 00:45:18
Original
10270 people have browsed it

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

<style>
@import &#39;./assets/css/dark-style-table.css&#39;;
</style>
Copy after login

[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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template