jQuery mobile收费栏的scrollview *不*固定 [英] scrollview for jQuery mobile tollbars *not* to be fixed

查看:79
本文介绍了jQuery mobile收费栏的scrollview *不*固定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功地使用了scrollview(http://jquerymobile.com/test/experiments/scrollview/)进行图库的左右滑动(看起来很棒),但是页眉/页脚始终是持久的,我无法工作而不是看代码或在线寻找使它们内联而不是固定的方法(例如默认的jQuery移动设置).

I have been using scrollview (http://jquerymobile.com/test/experiments/scrollview/) successfully for an image gallery left/right swipe (which looks great) however the header/footer are always persistent and I cant work out looking at the code or looking online a way for these to be inline rather then fixed (like the default jQuery mobile setup).

有什么想法吗?还是我错过了明显的事情?

Any ideas? Or have I missed something obvious?

非常感谢.

推荐答案

更改 将<div data-role="header" data-position="fixed">转换为html中的<div data-role="header"> 就足够了.

Change <div data-role="header" data-position="fixed"> into <div data-role="header"> in your html and it should be enough.

好吧,这还不够.

Scrollview插件可以滚动应用HTML元素的区域,因此要滚动整个页面而不是内容中的div,则必须在页面div中放置data-scroll="true"属性.

Scrollview plugin scrolls the area of a HTML element that it's applied to, so to scroll the whole page instead of a div in the content, you would have to put data-scroll="true" attribute in the page div.

我在此声明,我没有测试scrollview插件是否支持它. ;)

I hereby declare, that I didn't test if it is supported by the scrollview plugin. ;)

这篇关于jQuery mobile收费栏的scrollview *不*固定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆