问题
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