How to prevent jQuery mobile's automatic page styling?

旧时模样 提交于 2019-12-19 07:26:09

问题


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.


回答1:


You can ask jquery mobile not to touch your widget by putting the attribute below:

data-role="none"


来源:https://stackoverflow.com/questions/8959519/how-to-prevent-jquery-mobiles-automatic-page-styling

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!