在 Vue 包中,我想在 index.html 中完全导入 css 文件。
现在,'index.html' > 'App.vue' 通过 (#app) 挂载 > 'Todo.vue' 通过路由器挂载。
请帮帮我,谢谢。 :)
最佳答案
你可以在 main.js
文件中导入它。
import 'bootstrap/dist/css/bootstrap.css'
这将在您的所有组件中可用。
关于css - 我如何在 Vue.js 中导入 css?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59641803/