搜尋 Mozilla 技術支援網站

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

了解更多

iframe not showing on mozilla browsers but showing in chrome

  • 2 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

I am using iframe to place a shout box in my site for visitors. As I am using my own computer as a web server I decided to place the shout box in another hosting because when my server got down at least mt shout box stays there to communicate with users.

So I placed this here: http://dnetbd.com and attached that in my site with iframe

the shoutbox iframe works on every browser made with chromium but not works on any single mozilla platform, I have tried firefox and waterfox as well.. It's not working. Can anyone please tell me why it's happening?

I am using iframe to place a shout box in my site for visitors. As I am using my own computer as a web server I decided to place the shout box in another hosting because when my server got down at least mt shout box stays there to communicate with users. So I placed this here: http://dnetbd.com and attached that in my site with iframe the shoutbox iframe works on every browser made with chromium but not works on any single mozilla platform, I have tried firefox and waterfox as well.. It's not working. Can anyone please tell me why it's happening?

所有回覆 (2)

more options

here is the code which is working just fine with the same url:

<head>
<style type="text/css">
    body {scrolling:no;
}
    iframe {position:absolute;
    z-index:1;
    top:0px;
    left:0px;
}
</style>
</head>
<body>
    <iframe src="http://dnetbd.com/request_box/" height="100%" width="100%" frameborder="0"></iframe>
</body>

but when I put this code in my site for z-index 1 the other links not works so I changed the width value and position as fixed, now the code which is not working on mozilla and working on all chromium is:

<!DOCTYPE html>
<html>

<style type="text/css">
    body {scrolling:no;
}
    iframe {position:fixed;
    z-index:1;
    top:-0px;
    left:1050px;
	overlay:none;
}
</style>
<body>
    <iframe src="http://dnetbd.com/request_box/" height="100%" width="-30px" frameborder="0"></iframe>
</body>

</html>

由 cor-el 於 修改

more options

If you specify height="100%" width="100%" then this would mean that the iframe takes the full window size and thus makes it impossible to click through on links under it. Why don't you specify the real dimensions of that pop-up for the width and height?

You can check this in the Inspector via the right-click context menu.