admin管理员组文章数量:1122846
How to add or import font family with all font weight in shadow root element that not effect from the outside
In shadow root element css added below code @import url(':wght@100;300;400;500;700&display=swap'); or In shadow root element using link
It does not work because in consuming app font weight 500 missing i.e. in head tag inside body
<link href=":wght@100;300;400&display=swap" rel="stylesheet">
Bold code is shadow element and Italic code in consuming app, problem is that consuming app is override font weight but requirement is in shadow root what font family and font weight added, should not effect from outside the code.
I tried many ways like font family used in local folder of shadow element and using css tried load but it effected from outside the code
本文标签:
版权声明:本文标题:javascript - How to add or import font family with all font weight in shadow root element that not effect from the outside - Sta 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736310329a1934337.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论