Html 无导航栏的引导粘性页脚

Html 无导航栏的引导粘性页脚,html,css,twitter-bootstrap,twitter-bootstrap-3,Html,Css,Twitter Bootstrap,Twitter Bootstrap 3,我有一个问题,坚持在我的页面的battom这个页脚,但它只是拒绝坚持当我调整浏览器大小 这是密码 JS-Bin 将此添加到CSS中: #footer { position: fixed; } 你能解释一下你想用这个实现什么吗 也许你终于找到了id,但这是我使用的 #footer { position: absolute; bottom: 0; width: 100%; height: 60px; } 如果我加上这个,当我垂直缩小浏览器窗口时,页脚就会消失。我是新手,所以我第一

我有一个问题,坚持在我的页面的battom这个页脚,但它只是拒绝坚持当我调整浏览器大小

这是密码

JS-Bin


将此添加到CSS中:

#footer {
  position: fixed;
}

你能解释一下你想用这个实现什么吗

也许你终于找到了id,但这是我使用的

#footer {
position: absolute;
bottom: 0;
width: 100%;
height: 60px;
}

如果我加上这个,当我垂直缩小浏览器窗口时,页脚就会消失。我是新手,所以我第一次使用它。我想创建一个全宽度的页脚,粘贴在页面的底部。。。页面内容可能会因其动态生成而有所不同。。。如果页面内容很小,那么页脚应该贴在浏览器的底部。。。
#footer {
  position: fixed;
}
/* Negative indent footer by it's height */
    margin: 0 auto -100px;
#footer {
position: absolute;
bottom: 0;
width: 100%;
height: 60px;
}