Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

搜索 | 用户支持

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

详细了解

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.