iframe内容不能出现在Firefox中 [英] iframe contents cant appear in Firefox

查看:395
本文介绍了iframe内容不能出现在Firefox中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我的代码:

 < div style =border:solid 1px#000000; margin:5px; > 
< iframe src =http://www.w3schools.comwidth =100%height =300pxscrolling =yes>< p>您的浏览器不支持iframe。 ; / p>< / iframe中>
< / div>

iframe的内容在Chrome中运行良好,但在Firefox中不起作用。我禁用了附加组件,但是我的iframe仍然是空的。谁能帮帮我吗?

解决方案

如果您尝试在SSL加密的网站(https://)上添加此iframe,因为Mozilla已决定阻止加密网站上的所有未加密内容(例如,https网站上的http-iframe),所以Firefox 23以后再继续工作。
您可以通过在地址栏中键入 about:config 来改变您的Firefox安装行为,并设置 security.mixed_content.block_active_content false
但是,这不会帮助你的网站上的所有其他FF23访问者。

Below is my code:

<div style="border: solid 1px #000000; margin: 5px;">
  <iframe src="http://www.w3schools.com" width="100%" height="300px" scrolling="yes"><p>Your browser does not support iframe.</p></iframe>     
</div>   

Contents of iframe works well in chrome but not in firefox. I've disabled add-ons but my iframe is still empty. Can anyone please help me?

解决方案

If you are trying to add this Iframe on a SSL-encrypted website (https://), it won't work any more since Firefox 23 because Mozilla has decided to blocked all unencrypted content on encrypted websites (for example http-iframes on https-websites). You can change this behaviour in your own Firefox installation by typing about:config in the address bar and setting security.mixed_content.block_active_content to false. But that won't help you for all other FF23-visitors on your website.

这篇关于iframe内容不能出现在Firefox中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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