报错Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./components/registration/registration.wxss:4:1)
lz是因为自己在微信小程序里面添加了ID选择器,但是这在微信小程序组件样式中是不允许的。
同时组件和引用组件中也不能用属性选择器和标签名选择器,后代选择器会有非预期表现,请避免使用。
为了减少问题,建议大家使用一直使用class类选择器