JQuery Mobile 1.4如何禁用移动设备上的悬停效果 [英] JQuery Mobile 1.4 How to Disable Hover Effect on Mobile Devices

查看:126
本文介绍了JQuery Mobile 1.4如何禁用移动设备上的悬停效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到类似问题,如此问题中所述,但是与JQuery Mobile 1.4,特别是与列表视图。轻微点击不足以被视为点击会导致列表元素突出显示并保持突出显示:

I'm having a similar problem as described in this question, but with JQuery Mobile 1.4, particularly with the list views. A slight tap that is not enough to be considered a click causes list elements to highlight and stay highlighted:

任何人都可以告诉我如何防止我的应用程序中的任何悬停突出显示?我不想修改任何JQM主题的CSS做这个,但我会,如果这是需要的。

Can anyone tell me how I can prevent any hover highlighting in my application? I would rather not have to modify any of the JQM theming CSS to do this, but I will if that is what it takes.

推荐答案

为了防止jQuery Mobile 1.4 Listview中的任何悬停突出显示,您可以根据您使用的样本覆盖适当的CSS:

To prevent any hover highlighting in a jQuery Mobile 1.4 Listview you can overwrite the appropriate CSS according to the swatch you're using:

/* Button hover */
#yourList.ui-group-theme-a .ui-btn:hover {
    background-color: #f6f6f6 /*{a-bhover-background-color}*/;
}
/* Button down */
#yourList.ui-group-theme-a .ui-btn:active {
    background-color: #e8e8e8 /*{a-bdown-background-color}*/;
}

这篇关于JQuery Mobile 1.4如何禁用移动设备上的悬停效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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