在vue中,可以使用“@import”规则引入css文件,只需要在style标签中添加“@import css样式地址”即可。“@import”规则用于从其他样式表导入样式规则,该规则必须先于所有其他类型的规则。

本教程操作环境:windows7系统、vue2.9.6版,DELL G3电脑。
只需要在 style 中添加 @import 导入资源即可
将静态 Vue 页面(index.vue)改造为动态页面(Custom.vue);稿源仅限 index.vue、其引用的 CSS 与资源路径,禁止参考仓库内其他文件。Invoke when user wants to transform a static Vue page into a dynamic data-driven page with Element UI components.
<style> @import './assets/css/dark-style-table.css'; </style>
【相关推荐:《vue.js教程》】
前端入门到VUE实战笔记:立即使用
在学习笔记中,你将探索 前端 的入门与实战技巧!










