css - Firefox 13.0.1 css 定位问题

标签 css firefox positioning

我以前从来没有遇到过这种事情。除了 Firefox(使用 13.0.1)之外,每个浏览器都能完美呈现所有内容,包括 IE7 和 8。

所有中心内容在 Firefox 中似乎都向上移动,页眉和页脚放置正确。此外,底部的 UPC 图像似乎同时以缩放版本和复制的未缩放版本显示。

如果有人知道为什么 Firefox 会向上移动所有内容而不是其他经过测试的浏览器的原因。我习惯于在 IE 中遇到问题,但在 Firefox 中却不习惯。

html 位于 mpact-media.com/index_new.html

感谢大家的时间和考虑。

我在下面包含了屏幕截图。好的,所以我没有包括它们,因为不允许新用户发布图片。因此,该页面可以在 Safari、Chrome、Opera、IE7、IE8 和 IE9 中正确显示。

火狐截图

Safari/Chrome 截图

歌剧截图

IE8 截图

最佳答案

尝试在 #content 上将 position: relative; 更改为 position: absolute;:

#content {
    display: table-cell;
    left: 0;
    position: absolute;
    text-align: left;
    top: 170px;
    vertical-align: top;
    width: 896px;
}

关于css - Firefox 13.0.1 css 定位问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11167848/

相关文章:

html - 需要两个 div 才能正确排列

CSS 定位 : Full-width header shall have the same left margin as the centered content-div

javascript - 页面不会在 Internet Explorer 中居中

html - 图像和文本在一行中对齐且响应灵敏

Javascript 排序在 Firefox 中有效,在 Chrome 中无效

linux - Firefox 附加组件在哪里可以找到 .xpi 文件

CSS 属性的 Python 文件内容替换

javascript - 将元素颜色重置为默认样式表颜色(jQuery、JavaScript)

html - 不同网络浏览器中相同 html 元素的不同 UI

algorithm - 使用基站信号强度的三边测量来定位接收器?