html - CSS margin-top 在 Firefox 和 IE 中无法正确显示(在 Chrome 和 Opera 中有效)

标签 html css internet-explorer firefox google-chrome

我的网站边距有问题。到目前为止,看起来 margin-top 在 Firefox 和 IE 中都无法正常工作,而在 Chrome 和 Opera 中却可以正常工作。我不确定到底是什么问题,我已经尝试了多种技术并浏览了互联网,但到目前为止我还没有找到有效的解决方案。

这是我网站的链接:http://lukgaming.0fees.net/

请在 chrome 或 opera 中查看它与 Firefox 或 IE 一样的外观。

位置还有另一个问题:Firefox 中登录框的相对功能 - 登录框在其他 3 种浏览器(IE、Chrome 和 Opera)中工作正常。

如有任何帮助,我们将不胜感激。

注意:我指的是所有这些浏览器的最新版本

最佳答案

您的 js 文件中有 HTML,名为 mingle.js

这会导致 firefox 和 chrome 出错。 这是js文件末尾的HTML

<div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
<!-- Hosting24 Analytics Code -->
 <script type="text/javascript" language="javascript" src="http://stats.hosting24.com/do.php"></script>
 <noscript>
 <a href="http://www.hosting24.com/" target="_blank"><img src="http://stats.hosting24.com/do.php" alt="web hosting" border="0"></a>
 </noscript>
 <!-- End of Website Analytics Code -->
</div></div>

关于html - CSS margin-top 在 Firefox 和 IE 中无法正确显示(在 Chrome 和 Opera 中有效),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11889866/

相关文章:

html - Bootstrap 3 菜单项在小屏幕上消失

eclipse - 修改后的 CSS3 代码适用于 IE,但不适用于 Chrome

javascript - 在 ie8 中用日语字符模拟文本区域的 maxlength-

javascript - 为什么JS在IE以外的所有浏览器都能正常刷新?

html - 动态居中对齐 div 中的按钮文本?

javascript - 导致 Internet Explorer 8 崩溃的简单网页

html - Rails 和 html - 原始样式的 fontawesome

javascript - 淡入淡出并在鼠标悬停时停止

Python 保护设置 IE

html - 删除 hr 标签上方的空间