jQuery Mobile中的粘滞列表分隔符? [英] Sticky list dividers in jQuery Mobile?

查看:71
本文介绍了jQuery Mobile中的粘滞列表分隔符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以使jQuery Mobile List分隔符标头固定/粘在页面顶部,直到出现下一个字母或列表分隔符并取代它为止?

Is there a way to make the jQuery Mobile List divider header be fixed / sticky at the top of the page until the next letter or list divider comes up and takes its place?

我已经发现这样的东西: https://github.com/jquery/jquery-mobile/blob/master/experiments/scrollview/lists-divider.html 但是演示不起作用,当我实现了这段代码后,它也不起作用.

I have found already something like this: https://github.com/jquery/jquery-mobile/blob/master/experiments/scrollview/lists-divider.html but demo doesn't work, and when I had implemented this code, it also doesn't work.

推荐答案

我正在寻找一个插件来做同样的事情,也在jquery.mobile上查找列表分隔符. 找到了 Sticky插件.

I'm searching for a plugin to do the same, also for the list dividers on jquery.mobile. Found the Sticky plugin.

它在Firefox上效果很好,但是分隔符在Chrome或Safari浏览器上并没有排在最前面,这可能是因为jquery mobile创建的菜单结构复杂. 会设法弄清楚.

It works great on firefox, but dividers does not stick to the top on Chrome or Safari browsers, probably because of the complex menu structure jquery mobile creates. Will try to figure it out.

这篇关于jQuery Mobile中的粘滞列表分隔符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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