【问题标题】:jquery mobile footer on the bottom底部的jquery移动页脚
【发布时间】:2012-11-21 02:24:10
【问题描述】:

我在一个 jquery 移动应用中为我的页脚设置了 CSS 样式:

[data-role=footer]{
    bottom:0px; 
    position: relative !important; 
    top: auto !important; 
    width:100%;
}  

现在我希望页脚始终位于页面底部,包括内容高于页面的情况,因此我必须滚动。 外观和感觉应该类似于普通网站,在 iOS 的 safari 中打开。

有没有办法做到这一点?

【问题讨论】:

标签: jquery-mobile


【解决方案1】:

在jquery-mobile中创建一个fixed footer就行了:

<div data-role="footer" data-position="fixed">
your footer data
</div>

【讨论】:

    猜你喜欢
    • 2010-09-23
    • 2018-05-27
    • 2021-06-07
    • 2020-12-29
    • 2021-11-08
    • 2018-02-21
    • 2018-04-07
    • 2022-12-05
    • 1970-01-01
    相关资源
    最近更新 更多