html - IE7 标题中的奇怪错误

标签 html css header navigation

我在 IE7 中有一个奇怪的错误。 http://www.luukratief-design.nl/dump/simplefolio/

导航必须居中。背景也是如此。 现在每个浏览器都能完美地做到这一点。甚至IE6! (还没有做 pngfix)。 唯一有问题的是 IE7,它会将整个导航栏元素向右移动。

谁知道这是怎么可能的?

最佳答案

如果你在你的 css 中添加 Position: relative 到你的 navbar 元素而不是 position: fixed 它将在 IE7 中解决。

<div class="navbar"> <- position: fixed to position: relative .

关于html - IE7 标题中的奇怪错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2501310/

相关文章:

xcode - 告诉 Xcode 忽略某些目标的 header ?

javascript - 在 IE 中使用 jQuery UI Selectmenu 插件时出错

jquery - 如何改变当前ul所有li的class?

jquery - 动画切换滑动菜单

css - 溢出隐藏似乎为段落元素添加了填充

html - 在 div 元素内居中放置一个 H2

javascript - 实现HTML Canvas 图像着色功能

html - IE6 float 列表缩进问题

css - mso-line-height 和 mso-text-raise 在 Outlook 2013 中不起作用?

c++ - 错误: ";" expected before "void"