使用@import引入css样式
<template></template>
<style lang="scss" scoped>
@import "../static/xxxx.css";
</style>
js文件的引入
在main.js中:
import API from './assets/api/api.config.js'
Vue.prototype.$API = API;
其它html页面中引入css文件
内嵌式
<div style="width:100px;height:100px;border:1px solid #ccc"><div>
外联式
<link rel="stylesheet" href="wcss.css" type="text/css" />
style式
<style>
</style>
本文介绍了在Vue项目中引入CSS样式的多种方法,包括通过js文件导入,从外部HTML页面引入,以及内嵌式和外联式的style标签使用。
2677

被折叠的 条评论
为什么被折叠?



