如何防止jQuery mobile的自动页面样式? [英] How to prevent jQuery mobile's automatic page styling?
本文介绍了如何防止jQuery mobile的自动页面样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
jQuery mobile在加载时会自动将类添加到页面上的所有元素...这确实弄乱了我在页面上拥有的jQuery UI小部件.有什么方法可以防止jQuery mobile自动将类添加到我的HTML元素中吗?我只不需要页面上的某些jQuery移动窗口小部件,而我想明确地指定它们.
jQuery mobile automatically adds classes to all elements on my page on loading... this really messes up the jQuery UI widgets I have on the page. Is there any way to prevent jQuery mobile from automatically adding classes to my HTML elements? I only wan't some of the jQuery mobile widgets on my page, and I want to specify them explicitly.
推荐答案
您可以通过将属性放在下面来让jquery mobile不要触摸您的小部件:
You can ask jquery mobile not to touch your widget by putting the attribute below:
data-role="none"
这篇关于如何防止jQuery mobile的自动页面样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文