bug 微信开发者工具中web Component css显示不了
发布于 6 年前 作者 jie56 4321 次浏览 来自 问答

Component 用的是 shadow-root,发现css不生效(在开发者工具上调试时不生效,手机实现看时能生效)

测试demo:

Component  wxml:

<button class=“btn”>xxx</button>

wxss:

.btn{

background-color: red;

}

2 回复

我重新安装也不行

开发者工具问题,我之前也遇到过,版本升级最高,调试库也调到最高也没用.最后重新安装这个开发者工具就好了,这工具BUG真的多

回到顶部