如何在HTML iframe中隐藏元素? [英] How to hide an element inside HTML iframe?

查看:960
本文介绍了如何在HTML iframe中隐藏元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面,该页面的顶部是工具栏,而在工具栏下面是iframe.这是Stumbleupon风格.某些正在加载到iframe中的网页包含Flash对象,而在我的模式div中打开了这些对象.如何在iframe中隐藏Flash对象?您可能会在这里看到它的实际效果: http://www.yemeklog.com/1-pakistana-yardim-zamani.html 请在工具栏上单击"Yorum"文本.

I have a page that have toolbar at top and an iframe below the toolbar. It is Stumbleupon style. Some web pages that are loading into iframe has flash objects and those open on my modal div. How can I hide flash objects in iframe? You may see it in action here: http://www.yemeklog.com/1-pakistana-yardim-zamani.html Please click on "Yorum" text on toolbar.

推荐答案

正如此处已提到的,当页面位于其他域上时,您将无法对其进行修改.

As mentioned here already, you cannot modify the pages when they're on other domains.

不过,您可以通过将iframe放在模式div后面来解决问题. 您可以在此处找到更多信息和示例(非jquery): http://www.ozzu. com/website-design-forum/placing-div-over-flash-iframe-t94789.html

However, you can solve your problem by placing an iframe behind the modal div. More info and an example (non jquery) you can find here: http://www.ozzu.com/website-design-forum/placing-div-over-flash-iframe-t94789.html

这篇关于如何在HTML iframe中隐藏元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆