gpt4 book ai didi

css - 为具有静态页脚的页面设置 jquery 移动最小页面高度

转载 作者:行者123 更新时间:2023-11-28 09:20:52 24 4
gpt4 key购买 nike

由于固定位置页脚在 1.0b1 中仍然有点跳动,我想在我的页面上使用静态定位页脚。但是,当特定页面的内容少于整个屏幕时,页脚不会像固定时那样自动固定到屏幕底部。

有谁知道设置内容 div 的最小高度以强制页脚位于底部的首选方法吗?

最佳答案

提供您的页脚具有 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%;}

我在一个元素中就是这样做的

关于css - 为具有静态页脚的页面设置 jquery 移动最小页面高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6498502/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com