[小程序] 组件样式问题

1
Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and at xxx

解决组件样式问题

解决方案:

1
2
3
4
5
Component({
options:{
addGlobalClass:true
}
})

官方 组件模板和样式