简体   繁体   English

Disqus如何能够继承父母的风格?

[英]How disqus able inherit parent's styles?

You can't inherit parent's properties into an iframe Source: Iframe inherit from parent . 您无法将父级的属性继承到iframe中。来源: iframe从parent继承

But how come disqus able to inherit it's background color from parent? 但是,disqus如何能够从父级继承其背景颜色? For example this site: https://kostasbariotis.com/geospatial-query-with-mongodb-and-node-js/ 例如此站点: https : //kostasbariotis.com/geospatial-query-with-mongodb-and-node-js/

Because the <iframe> is transparent. 因为<iframe>是透明的。

Example: 例:

 <div style="background-color:#000;"> <iframe src="about:blank" allowtransparency="true" style="background-color: transparent;" /> </div> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM