Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iframe not loading in firefox only

Contents of iframe works well in chrome but not in firefox. I've disabled add-ons but my iframe is still empty.Both my site and iframe are https.

Below is the code:

  <p><iframe class="display:inline-block;" frameborder="0" height="2622px" scrolling="no" src="https://www.emolument.com/start" width="100%"></iframe></p>  
like image 816
Prajila V P Avatar asked Feb 28 '17 07:02

Prajila V P


People also ask

How do I enable iframe in Firefox?

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 .

How do I find iframe in Firefox?

The iframe context picker button feature is enabled by default (if it has been disabled the iframe button is never displayed). The feature can be re-enabled from the Settings menu, using the “Select an iframe as the currently targeted document” checkbox.

Does iframe work in all browsers?

The iframe element is supported by all modern desktop and mobile browsers.


1 Answers

Try:

<p><iframe style="display:inline-block; height: 2622px" frameborder="0" scrolling="no" src="https://www.emolument.com/start" width="100%"></iframe></p>

Corrected style attribute and declared height as css instead of height attribute.

The height attribute btw should not have 'px'.

like image 67
Davey Avatar answered Dec 01 '22 04:12

Davey