简体   繁体   English

jQuery Mobile 1.2.0任何页面onClick隐藏固定页脚

[英]jQuery Mobile 1.2.0 any page onClick hides fixed footer

After fixing a footer in jQuery Mobile 1.2.0, any time i click anywhere on the page the page footer slides down. 在jQuery Mobile 1.2.0中修复页脚后,无论何时我点击页面上的任何地方,页脚都会向下滑动。 Upon inspection I found that the ui-fixed-hidden class was being applied to the footer, but I'm not sure why. 经过检查,我发现ui-fixed-hidden类正在应用于页脚,但我不确定为什么。

添加以下任何位置data-position =“fixed”会解决问题

data-tap-toggle="false"

I am using PrimeFaces 5.0 final release, which means I am using jQuery Mobile 1.4.2. 我正在使用PrimeFaces 5.0最终版本,这意味着我正在使用jQuery Mobile 1.4.2。

I added data-tap-toggle="false" as recommended here (and in many other questions here on stackoverflow), but that did not solve my issue with the header. 我在这里推荐了data-tap-toggle =“false”(以及stackoverflow中的许多其他问题),但这并没有解决我的问题。

<div data-role="header" data-position="fixed" data-tap-toggle="false">

So, I also added the following, and this fixes my issue. 所以,我还添加了以下内容,这解决了我的问题。

.ui-header.ui-fixed-hidden {
    position: fixed !important;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM