使用@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>