微信小程序开发组件的时候,提示
VM414:2 Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./pages/founding/founding.wxss:288:3)This wxss file is ignored.
遇到这种问题大部分都是没仔细看微信文档,官方有解决方案。(以前是不行的,后来版本又补的)
首先看为什么会这样
解决方案:
官方文档链接:https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html