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}*/;
}