UniApp中引入VantUI后出现报错@import ‘../common/index.css‘;.van-icon{text-rendering:auto;-webkit-font-smoothi

在我们引入VantUI后,运行发现报错了!!!

报错信息:

@import '../common/index.css';.van-icon{text-rendering:auto;-webkit-font-smoothing:antialiased;font:normal normal normal 14px/1 vant-icon;font-size:inherit;position:relative}.van-icon,.van-icon:before{display:inline-block}.van-icon-exchange:before{content:"\e6af"}.van-icon-eye:before{content:"\e6b0"}.van-icon-enlarge:before{content:"\e6b1"}.van-icon-expand-o:before{content:"\e6b2"}.van-icon-eye-o:before{content:"\e6b3"}......

解决:

只需要在icon目录下的index.wxss文件中,ctrl+f查找url然后在url加上空格即可!!!

UniApp中引入VantUI后出现报错@import ‘../common/index.css‘;.van-icon{text-rendering:auto;-webkit-font-smoothi_第1张图片

你可能感兴趣的:(uniapp学习笔记,报错问题解决,uni-app,css)