Css 引导页脚粘性底部-滚动条
我在想我做错了什么。我试图摆脱垂直滚动条。我试过去掉衬垫,甚至调整高度。不知道我错过了什么。非常感谢你的帮助Css 引导页脚粘性底部-滚动条,css,twitter-bootstrap,sticky-footer,Css,Twitter Bootstrap,Sticky Footer,我在想我做错了什么。我试图摆脱垂直滚动条。我试过去掉衬垫,甚至调整高度。不知道我错过了什么。非常感谢你的帮助 由于已将页脚高度设置为70px,因此还需要调整包裹底部填充 /* Wrapper for page content to push down footer */ #wrap { min-height: 100%; height: auto !important; height: 100%; /* Negative indent footer by its height *
由于已将页脚高度设置为70px,因此还需要调整包裹底部填充
/* Wrapper for page content to push down footer */
#wrap {
min-height: 100%;
height: auto !important;
height: 100%;
/* Negative indent footer by its height */
margin: 0 auto -70px;
/* Pad bottom by footer height */
padding: 0 0 70px;
}
你的意思是水平还是垂直?滚动条只垂直出现=底部有一个水平滚动条,因为如果你的媒体查询中出现了负边距。我自己想起来了。这对我来说是个错误。向导致滚动条出现的div添加边距。我的错。
/* Wrapper for page content to push down footer */
#wrap {
min-height: 100%;
height: auto !important;
height: 100%;
/* Negative indent footer by its height */
margin: 0 auto -70px;
/* Pad bottom by footer height */
padding: 0 0 70px;
}