css - 如何在编辑页面内容时修复 jquery Mobile 固定页脚?

标签 css html cordova jquery-mobile

我正在使用 phonegap 和 jquery Mobile 制作一个移动应用。

以下是我的footer

代码
   <div data-role="footer" data-position="fixed" data-tap-toggle="false">
       <h1>Some Footer Text</h1>
   </div>

我已经提到 position 作为 fixed 当我点击任何文本框输入数据时 footer 仍然消失。我需要向下滚动才能找到按钮。 即使我在文本框或其他任何地方编辑,我也不能有 footer 吗? 请帮助我,我是 jquery mobile 和 phonegap 的新手。

最佳答案

在页脚标签中使用 data-hide-during-focus=""this

      <div data-role="footer" data-position="fixed" data-tap-toggle="false">
           <h1>Some Footer Text</h1>
      </div>

关于css - 如何在编辑页面内容时修复 jquery Mobile 固定页脚?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30976678/

相关文章:

html - CSS + 图像在 github 页面上不起作用,但在本地工作

javascript - 图像根据移动设备宽度适合 div,无需拉伸(stretch)

ios - Monaca (Cordova) BarcodeScanner 不会取消

php - 根据高度保持纵横比

javascript - 我希望表格的内容使用简单的 html 和 css 动态地适应屏幕,任何人都可以帮助整理它

JQuery Mobile 对话框背景

html - 将宽度为 100% 的 <div> 居中?

html - 使 Iframe 响应高度

node.js child_process 生成忽略等号

html - 为什么 <form> 没有在 <nav> 中正确对齐?