最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - Styles appear differently for different pages in shadow DOM - Stack Overflow

programmeradmin1浏览0评论

I'm developing a google extension, where I came to know the concept of shadow dom, but the behavior I'm facing is that same style of same element appear differently on different sites and it's visible in the 'Styles' tab, when we inspect, that the style is same, as there was no cut line on that style. I've come through solutions e.g use root.style.cssText = 'all:initial', but still no results. Kindly help me fix that !

On site 1, the style is this

On site 2, the style is this:

Content.tsx:

发布评论

评论列表(0)

  1. 暂无评论