iframe not showing up in firefox only

2019-05-23 10:27发布

问题:

the iframe that i have below is not showing up. In fact it is greyed out in firebug.

But it loads perfectly fine in Chrome and 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>

回答1:

check your adblock. just FYI. had the same problem. lost a day. lol.



回答2:

Don't use Iframes, only for IE8 and below. Use object

Do this (This example will use iframes for ie9, no biggie (u can use lte ie8 instead).

<!--[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]-->


回答3:

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. More info at http://code007.wordpress.com/2012/06/21/iframe-not-loading-in-firefox-13/



回答4:

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.



标签: html css iframe