问题描述
下面是我的代码:
<div style="border:solid 1px #000000; margin: 5px;"><iframe src="http://www.w3schools.com" width="100%" height="300px" scrolling="yes"><p>您的浏览器不支持 iframe.</p></iframe>
下面是我的代码:
<div style="border:solid 1px #000000; margin: 5px;"><iframe src="http://www.w3schools.com" width="100%" height="300px" scrolling="yes"><p>您的浏览器不支持 iframe.</p></iframe>
iframe 的内容在 chrome 中运行良好,但在 Firefox 中不起作用.我禁用了附加组件,但我的 iframe 仍然是空的.谁能帮帮我吗?
如果您尝试在 SSL 加密的网站 (https://) 上添加此 Iframe,自 Firefox 23 起它不再起作用,因为 Mozilla已决定阻止加密网站上的所有未加密内容(例如 https 网站上的 http-iframe).您可以通过在地址栏中键入 about:config
并将 security.mixed_content.block_active_content
设置为 false
在自己的 Firefox 安装中更改此行为.但这对您网站上的所有其他 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 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!