为什么会报错我哪里写错了
来源:7-2 Vue项目首页 - iconfont 的使用和代码优化
慕勒2048820
2019-02-23
`@font-face {font-family: “iconfont”;
src: url(’./iconfont/iconfont.eot?t=1550925302636’); /* IE9 /
src: url(’./iconfont/iconfont.eot?t=1550925302636#iefix’) format(‘embedded-opentype’), / IE6-IE8 /
url(‘data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAN4AAsAAAAAB2AAAAMqAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDHAqCIIIKATYCJAMQCwoABCAFhG0HQxt3BhEVlLdkfzluXEXxxk74wLiFqvSbxmsvXQSxcdijPo259EdFBFb2fh08/I/7ug/z543EBLBDaE7iIopRjkZ037PtE9Vtz78ZJUlZ6ppk/+fykIY6Q1mSZzeWqA4oaTl9+fkDN+Pm1YScHOTiHgab1uUcQUC5wUEAWs8LJTJh9cJg7b+EQoP/xnKnZUzLteA8Y1uScfQdnqW5Avy9OBy3LIH5VttlrEljbIu6AOOtgY01KUuwQHJPQb1mYjVAFw9DAPYESyRKbmtaWGjoKAGIobi3nVVxotFGxCCwdCzUiG2aGPnyKbCVfF/8JT0GiY2CHtXQU9rF+RH5o1qwqszUMt/bWQBjGSggEWgQfZ22DioLJlLYe92bbGAwSNiqLfjRumKAC3OZHeTiP09YoOmOAGQipODHuSBDwo9ASpf8EYIbOEgDYAALUA3GodhA9BKB8qj2YLMdr93121g7/yQ+77h4KuGj4Co3LcT5wdrJRe84XPTJoxNnO9+/nw8f9t07vX2bclw2xMQ77vDkuTNecnDs9Fnvuf4iRCfH2nyKYXG1vPe7seRB4p29/bivYO7ujVnvx/Hk7jy6WD/41I/6+RNVlzVJwCk4YCO21OrBA0jxls4BV2VDvI3ix0vgB/MFdbGdD+2qrsqbVKxq/5VJeH26XvAjfkPy7m+rS86/EQAff/QfHFYNpvPfJt/jv3b+xDLtC6lea1ckeEGqJpKCe9Fgz4zwsqPg7vsWKq87CgsMXgVIbAkChSESoTGJYIMDmWDBkA/2JChf7oCHCQqhA8RbJSBwdQ0kztwHhatnCI0R/ULTsT9omURBz1sONuy7TH/vSnCtuIPNF8RbLogbtZdmPmFos7WUhQnuDcXEHvAdrx65wwJliynmPQxUCUg4h1tyHGYZQymc4FadSLWcui51vcjZcl7puSLQmkI7YOMLiG2xAkXVVa/x+ScoZGXWZKCkx/oGCSPuHPgc3gTEnayYVPIqzxjvQgGlCCCC5cAtsaCMBRkou/sl0JZyRAv8pSlXqURTZc7xivwJ11Cp9NCNGhmpdKb2i9eFsm1R3DOyccuwNZYrFQAA’) format(‘woff2’),
url(’./iconfont/iconfont.woff?t=1550925302636’) format(‘woff’),
url(’./iconfont/iconfont.ttf?t=1550925302636’) format(‘truetype’), / chrome, firefox, opera, Safari, Android, iOS 4.2+ /
url(’./iconfont/iconfont.svg?t=1550925302636#iconfont’) format(‘svg’); / iOS 4.1- */
}
.iconfont {
font-family: “iconfont” !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
import Vue from 'vue'
import App from './App'
import router from './router'
import fastClick from 'fastclick'
import './assets/style/reset.css'
import './assets/style/border.css'
import '.assets/style/iconfont.css'
Vue.config.productionTip = false
fastClick.attach(document.body)
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'
})
![图片描述](htt
1回答
-
Dell
2019-02-23
引入iconfont.css前面路径错了./assets ,你缺少 /
00
相似问题