简体   繁体   English

iframe 仅未出现在 firefox 中

[英]iframe not showing up in firefox only

the iframe that i have below is not showing up.我在下面的 iframe 没有出现。 In fact it is greyed out in firebug.事实上,它在萤火虫中是灰色的。

But it loads perfectly fine in Chrome and Safari.但它在 Chrome 和 Safari 中加载得非常好。 Can anyone point me in the right direction?谁能指出我正确的方向?

Thx alot.多谢。

<iframe allowtransparency="true" scrolling="no" frameborder="0"
src="http://widget.yourchalkboard.com/show_widget.php
?token=AP6sWcLms0DkU0gd7zCykmNNkUdb76uP7FPuIGlZ8aXFWlhOp8&type=leaderboard"
style="height:90px;width:728px;padding:0px;border-width:0px"></iframe>

check your adblock .检查您的广告拦截 just FYI.仅供参考。 had the same problem.有同样的问题。 lost a day.失去了一天。 lol.哈哈。

I have met the same thing, and it seems that the issue was that the main page's URL was accessed with an IP address instead of a domain name.我遇到了同样的事情,似乎问题在于主页的 URL 是使用 IP 地址而不是域名访问的。 More info at http://code007.wordpress.com/2012/06/21/iframe-not-loading-in-firefox-13/更多信息请访问http://code007.wordpress.com/2012/06/21/iframe-not-loading-in-firefox-13/

Don't use Iframes, only for IE8 and below.不要使用 Iframe,仅适用于 IE8 及以下版本。 Use object使用 object

Do this (This example will use iframes for ie9, no biggie (u can use lte ie8 instead).这样做(此示例将使用 iframe 用于 ie9,没有什么大不了的(你可以使用 lte ie8 代替)。

<!--[if IE]>        
<iframe class="whatever_IE" align="???" src="????" width="???" height="???" border="none" scrolling="no" frameborder="0"></iframe>
<![endif]-->

<!--[if !IE]>-->
<object  type="text/html" class="whatever" data="????" width="???" height="???"></object>   
<!--<![endif]-->

I had this type of problem once with a file in development that had the word "frame" as part of its filename.我曾经在开发中的文件中遇到过此类问题,该文件的文件名中包含“框架”一词。 By changing the name of the file, this problem went away.通过更改文件的名称,这个问题就消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM