jquery - 由 bootstrap 提供支持的网页中的错误滚动

标签 jquery html css twitter-bootstrap

我写了一个网页如图here .我为所有 cssjs 库使用了外部 CDN。 我这样使用 css(我自己的 css):

#imgOne {
    position: fixed;
    bottom: 35%;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 10%;
    background-color: #E9E9E9;
    background-image: url(../images/Bistip-in-media.png);
    background-repeat: no-repeat;
    background-position: center;
    -webkit-box-shadow: 0 10px 6px -6px #777;
    -moz-box-shadow: 0 10px 6px -6px #777;
    box-shadow: 0 10px 6px -6px #777;
}

#imgTwo {
    position: fixed;
    bottom: 45%;
    width: 100%;
    height: 16%;
    background-image: url(../images/Skyline.png);
    background-repeat: no-repeat;
    background-position: center center;
    box-shadow: 0px 10px 6px -6px #777;
    background-color: #FFF;
}

#formPos, #formPosOne {
    position: relative;
    width: 34%;
    height: auto;
    box-shadow: 0px 10px 6px -6px #777;
    background-color: #166BB3;
    margin-top: 8%;
    margin-left: 10%;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 35%;
    background-color: #166bb3;
}  
html,
body {
    height: 100%;
    width: 100%;
    overflow: auto;
}  

但是整个页面没有滚动。只有包含蓝色 div 的部分在滚动。我该如何解决?

最佳答案

这将使您的主容器的内容滚动,但您需要将容器的位置多一点

.containerA{
    overflow-y: auto;
}

关于jquery - 由 bootstrap 提供支持的网页中的错误滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31675051/

相关文章:

jquery - 使用 jQuery 提交 Rails 表单

jquery - iDangerous Swiper,后续的 destroy() 和 reInit() 方法

internet-explorer - 在 Internet Explorer 上使用 Windows 身份验证通过 SSL 进行跨域 ajax 调用失败

css - Flexbox:证明内容:空格?

javascript - 在 div 下方对齐 anchor 标记

javascript - jquery $ ('<div>' ) vs $ ('<div/>' )

html - 使页脚在移动 View 和桌面 View 中都停留在页面底部

html - 为什么 IE7 不能正确地将 <pre><code> block 复制到剪贴板?

jquery - 当我们悬停在 userid 上时显示用户详细信息

javascript - 如何在动态添加内容时居中对齐 div