微信小程序自定义组件内.wxss样式失效

需要在Component({})中插入

options: {
    addGlobalClass: true
  },

猜你喜欢

转载自blog.csdn.net/qq_45020145/article/details/130236539