由于固定位置页脚在1.0b1中仍有点跳跃,我想在页面上使用静态页脚.但是,当特定页面的内容少于全屏时,页脚不会像固定时那样自动固定到屏幕底部.
有没有人知道设置内容div的最小高度以强制页脚到底部的首选方法?
小智 6
提供您的页脚具有data-role=footer属性,您的页面有data-role=page...
[data-role=page]{height: 100% !important; position:relative !important;}
[data-role=footer]{bottom:0; position:absolute !important; top: auto !important; width:100%;}
Run Code Online (Sandbox Code Playgroud)
这就是我在我的一个项目中做到的