搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

An iframe element works weird in Firefox - any ideas why?

  • 2 回覆
  • 2 有這個問題
  • 5 次檢視
  • 最近回覆由 legriv

more options

Hey there,

Sorry if this is not the right category, but I couldn't find one that seemed more appropriate. I have a question about the iframe element. My page includes it like this:

<iframe height="0" width="0" src="<some_URL>"></iframe>

within the <head> element. The purpose of this iframe is to peform some work in the background and this is legacy code - nothing that is being currently developed. When I show the page in Mozilla I see a dot in that iframe. When using IE I see nothing, which is expected.

Any ideas why Mozilla would show that dot? I'm using version 19.

Cheers, Dimitar

Hey there, Sorry if this is not the right category, but I couldn't find one that seemed more appropriate. I have a question about the iframe element. My page includes it like this: &lt;iframe height="0" width="0" src="&lt;some_URL&gt;"&gt;&lt;/iframe&gt; within the &lt;head&gt; element. The purpose of this iframe is to peform some work in the background and this is legacy code - nothing that is being currently developed. When I show the page in Mozilla I see a dot in that iframe. When using IE I see nothing, which is expected. Any ideas why Mozilla would show that dot? I'm using version 19. Cheers, Dimitar

由 cor-el 於 修改

被選擇的解決方法

That is caused by a border that Firefox adds by default (style="border: none;")

從原來的回覆中察看解決方案 👍 2

所有回覆 (2)

more options

選擇的解決方法

That is caused by a border that Firefox adds by default (style="border: none;")

more options

Thanks a lot cor-el!