开发者

Change iframe content css from the caller page of the iframe

Is it possible? I want an make an adaptive layout but neither CSS or JS can force the iframe content to change from the calling pa开发者_JAVA百科ge. However the the iframe pages and the caller use the same CSS and JS file.


This is only possible, if they are from the same origin. It doesn't matter if both use the same CSS or JS file. That means, both are using the same domain name, application layer protocol, and (in most browsers) port number. (Same origin policy)

If you are sure that you fullfil the above mentioned requirements, please check the following links:

  • Adding a stylesheet to an iframe
  • How to apply CSS to iFrame?
  • How to load up CSS files using Javascript?
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜