组件样式

发布于 7 年前作者 nasong11552 次浏览最后编辑 7 年前来自 issues

组件和引用组件的页面不能使用id选择器,经测试引入组件的页面可以使用id选择器,这里为甚么这样注释?

1 回复
jiefan
jiefan1 楼5 年前

自定义组件使用了也生效,但是也会报警告Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.