微信文檔:https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html#%E7%BB%84%E4%BB%B6%E6%A0%B7%E5%BC%8F%E9%9A%94%E7%A6%BB
問題:父組件中修改子組件 /deep/ H5中生效,但是在微信小程序不生效。
解決:在script中添加styleIsolation: ‘shared’,即可解決
如圖:文章來源地址http://www.zghlxwxcb.cn/news/detail-658663.html
文章來源:http://www.zghlxwxcb.cn/news/detail-658663.html
到了這里,關(guān)于uniapp 開發(fā)微信小程序 樣式穿透問題解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!