将CSS应用于iframe [英] Apply CSS to iframe
本文介绍了将CSS应用于iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将iframe从外部网站添加到我的这样:
I add iframe from external site to mine like this:
<iframe src="http://site.com/page/"></iframe>
它有一些自己的css和javascript文件。
It has some own css and javascript files.
如何将自己的css样式添加到此iframe?
推荐答案
如果是iframe source与您的网站不是同一个域,由于同源政策,您无法为其添加自己的CSS 。
If the iframe source is not the same domain as your site, you can't add your own CSS to it due to same origin policy.
这篇关于将CSS应用于iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文