我正在尝试创建一个粘脚,它粘在屏幕底部(不是固定的),并根据添加的内容数量向下移动。
在大屏幕上,页脚不粘。
视图: http://www.bootply.com/VxVeDahZzG
发布于 2015-06-12 20:42:02
我认为你需要把你的身体尺寸改变到100%。这是一个很好的网站,帮我弄清楚了。http://ryanfait.com/sticky-footer/
他是这样做的:
* {
margin: 0;
}
html, body {
height: 100%;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -155px;
}
.footer, .push {
height: 155px; /* .push must be the same height as .footer */
}你也需要把你的脚走出你的身体,这样才能发挥作用。
https://stackoverflow.com/questions/30811675
复制相似问题