我试图在页面上粘贴页脚,每个标签都带有100%高度。 我的问题是,如果内容比显示更大,并向下滚动,页脚不再位于页面的底部。 页脚保持在这样的位置:Picture of the footer粘性页脚在100%高度的网站上
下面是一个例子:(对不起,这是错误的链接。) http://jsfiddle.net/qt3m1p4c/
<html style:"height: 100%">
<body style:"height: 100%">
A lot of Content
</body>
<footer style:"position: absolute; bottom: 0;">
Sticky Footer
</footer>
</html>
是否有人没有如何解决这个问题,无需拆卸heigth属性?
位置:固定为页脚。 – Gerard