html - 黑莓位置 :fixed css does not work

标签 html css jquery-mobile blackberry-jde

我已经使用 rho mobile 为黑莓 Os6.0 和 android 创建了一个应用程序,我想在其中使用修复页眉和页脚。我为此创建了一个 css 使用 position:fixed;顶部:0px; 。它不适用于黑莓,但在安卓中运行良好。它随页面滚动,当停止滚动时它再次固定在黑莓中的确切位置...我的其他 CSS 工作正常并且没有错误..

请帮我解决这个问题..

最佳答案

在标签中,我看到了 jQuery Mobile,因此您可以 use it

Fixed toolbars In browsers that support CSS position: fixed (most desktop browsers, iOS5+, Android 2.2+, BlackBerry 6, and others), toolbars that use the "fixedtoolbar" plugin will be fixed to the top or bottom of the viewport, while the page content scrolls freely in between. In browsers that don't support fixed positioning, the toolbars will remain positioned in flow, at the top or bottom of the page.

To enable this behavior on a header or footer, add the data-position="fixed" attribute to a jQuery Mobile header or footer element.

Fixed header markup example:

<div data-role="header" data-position="fixed">
    <h1>Fixed Header!</h1>
</div>

关于html - 黑莓位置 :fixed css does not work,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10432413/

相关文章:

javascript - drupal 主题 : how do I include several css files/js files on my theme's . 信息文件?

html - CSS隐藏的第一个 child

jquery-mobile - Microsoft JScript 运行时错误 : '$' is undefined

html - 将自定义 Bootstrap 工具提示气球与轮廓对齐

php - keyup if 语句的 indexOf 字符串行为很奇怪?

java - 在codeigniter中修改时编辑下拉列表

css - 创建小方 block 的 css 背景图案并控制不透明度

javascript - 无法使用 jQuery Mobile 1.3.1 显示弹出窗口

html - 设置旋转框位置 JQuery Mobile (css)

jquery - 在 div 包装内跨度