Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

why is my site's Iframe partially loading?

  • 5 个回答
  • 1 人有此问题
  • 4 次查看
  • 最后回复者为 onkar4in

more options

Dear Sir,

My website's iframe is loading partially in firefox but is loading fully in chrome. You can check it in

http://orthocad.iitb.ac.in/betic/

Please let me know what needs to be done to solve this issue.

Dear Sir, My website's iframe is loading partially in firefox but is loading fully in chrome. You can check it in http://orthocad.iitb.ac.in/betic/ Please let me know what needs to be done to solve this issue.

被采纳的解决方案

Apparently 150px is the default height for an iframe based on a CSS specification, if the other height rules don't supersede it: http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-height

定位到答案原位置 👍 0

所有回复 (5)

more options

Your iframe has position:relative and height="100%" but the actual height is 150px.

For reasons I can't remember, the fix for this is to add this style rule to the table, not the table cell: height:100%

more options

Also, if you add cellspacing="0" and cellpadding="0" to the table tag, some of the horizontal gaps will be removed and you can drop the width="101%" to width="100%" and remove left:-1px on your iframe tag.

more options

Hi thanks for the immediate response;j

I have made the the table height:100%; Do I need to remove the position:relative?

Also just for the curiosity why is the total height of frame only 150px? have I specified it anywhere?

more options

选择的解决方案

Apparently 150px is the default height for an iframe based on a CSS specification, if the other height rules don't supersede it: http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-height

more options

Thanks jscher2000;

I have solved the issue by explicitly specifying the height of the iframe in pixels. Thanks for directing me towards it.