css - chrome 页脚重叠内容尽管清晰 :both used

标签 css google-chrome

我的页脚 div 与 chrome 浏览器中的内容重叠,尽管我已经清除了它。有人可以用 css 给我指出正确的方向吗?我应该使用 if is chrome javascript 吗?

http://archibaldbutler.com/projects/roaming-giraffe/html/

谢谢

最佳答案

如果页脚一直设计在页面底部,那么这样做:

.footer-bg {
    clear: both;
    bottom: 0px;
    position: fixed;
    width: 996px;
    height: 192px;
    background-image: url('../html/images/footer-bg.jpg');
    background-position: center top;
    background-repeat: no-repeat;
}

.content-bg2 {
    clear: both;
    float: left;
    margin-top: 10px;
    margin-bottom:192px;
    width: 996px;
    height: 369px;
    background-image: url('../html/images/maincontent2bg.jpg');
    background-position: center top;
    background-repeat: none;
}

如果它应该位于该内容区域的底部,则执行此操作:

.footer-bg {
    clear: both;
    bottom: 0px;
    width: 996px;
    height: 192px;
    background-image: url('../html/images/footer-bg.jpg');
    background-position: center top;
    background-repeat: no-repeat;
}

关于css - chrome 页脚重叠内容尽管清晰 :both used,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15747577/

相关文章:

javascript - Chrome 视口(viewport)外的奇怪 div block

javascript - 在 JavaScript 中缩小表格

javascript - 如何将 HTML 页面添加到 React 应用程序

android - 如何使用 multiple 属性在 Android 上上传多个文件?

google-chrome - Chrome 中窄视频的控件被切断

css - 表格布局问题 - Firefox 与 Chrome 和 IE7

android - 在 chrome 浏览器中打开一个 html 页面

php - 为什么使用 Spry 菜单会杀死我的 <p> 标签?

css - 如何在 li 中禁用 css 中的单击和选择

javascript - 设置样式位置 : absolute 时,Chrome 对象标签加载多次