css - 在 IE 和 Firefox 中使用 960gs 的固定中心页脚问题

标签 css html layout 960.gs

我在尝试在 IE 和 FF 中对齐我的固定页脚时遇到问题。 Chrome 似乎可以很好地渲染页面!这是我在 Chrome 中得到的: Chrome Result

页脚出现在正确的位置。这是我在 IE 和 FF 中得到的。页脚的对齐方式变坏了:

IE and FF result

这是我的 HTML 代码:

<div id="page-wrap" class="container_12">
    <header id="header" class="grid_12">
        <!-- header content and main navigation -->
    </header>

    <div id="content" class="grid_12">
        <!-- slider and content goes here! -->
    </div>

    <footer id="footer" class="grid_12">
        <div class="menu">
            <ul>
                <li><a href="http://localhost/asq/1/">Menu1</a></li>
                <li><a href="http://localhost/asq/2/">Menu2</a></li>
                <li><a href="http://localhost/asq/3/">Menu3</a></li>
                <li><a href="http://localhost/asq">Home</a></li>
                <li><a href="http://localhost/asq/5/">Menu5</a></li>
                <li><a href="http://localhost/asq/6/">Menu6</a></li>
                <li><a href="http://localhost/asq/7/">Menu7</a></li>
            </ul>
        </div>
    </footer>

</div>

我的页脚 CSS 是:

#footer {
    bottom: 0;
    position: fixed;    
}

我错过了什么?

最佳答案

让页脚居中

#footer{
width:800px;
margin-left:auto;
margin-right:auto;
}

关于css - 在 IE 和 Firefox 中使用 960gs 的固定中心页脚问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9792068/

相关文章:

javascript - 很简单。来自 JS 的表格创建闪烁的光标

html - 为什么将 float 与 % 一起使用时 div 会消失?

c# - 在 asp.net 中,Repeater 无法使用页面上的 Div 正确触发

html - 网站闪电代码 CSS

jquery 选择器选择查找 imgs 但不是子 div 中的图像

c++ - 如何调整 QVBoxLayout 的大小以填充没有空格的表单?

android - 我可以添加一个按钮吗?

css - 将元素与第二列对齐

jquery - 删除表单内联类

jquery - 背景图像在鼠标悬停时闪烁