不能随便的引入公共样式,否则会报错 解决方法:(看官方文档) 官方链接:https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html 详细链接:https://blog.csdn.net/noname666/article/details/84077080