css - 带有固定 header 和 960.gs 的 IE7 奇怪行为

标签 css css-position

大家好……您能对以下链接发表您的意见吗? http://dante.edoardobiasini.it 由于某些原因,在 ie7 中,上面的固定标题没有居中,而是一直向右移动…… 谢谢

最佳答案

IE7 在 left: auto 下并不总是正常运行,而 #branding 目前就是这样。

要修复它,请添加:

#branding {
    left: 50%;
    margin-left: -480px; /* 960/2 */
}

关于css - 带有固定 header 和 960.gs 的 IE7 奇怪行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10980001/

相关文章:

css - 在不使用 position 元素的情况下在 CSS 中定位

html - 是否可以移动位置为 :absolute on hover? 的 flex 元素

css - 何时准确使用相对位置

CSS:带有 position:absolute 的 UL 显示带有 position:fixed 和 overflow:hidden 的外部容器

html - 在 Webkit 中打印时控制 CSS 分页符

CSS:如何控制页脚中SVG的大小

html - html-css 中多个粘性元素的问题

html - 使用 div 的 flexbox 布局问题

html - CSS: super 菜单 - 绝对高度问题

html - 使用 Z-Index 的 Div 堆叠