Tell JQuery Mobile not to add classes?

烂漫一生 提交于 2020-01-04 05:43:10

问题


I have a Sharepoint application that we're using with mobile browsers. All I'm using from JQuery mobile are the touch event handlers.

JQuery mobile adds classes to the dom to make web pages more mobile friendly, but it's wreaking havoc on Sharepoints automated CSS handling.

Is there a way to tell JQuery Mobile not to mess with the DOM?


回答1:


You could use just the jQM libraries you need as they have decoupled the widgets now:

  • https://github.com/jquery/jquery-mobile/commit/2a6c7fc1b982c4308a0450a308f5a66a10e949cf

You can read more about this in the release notes here:

  • http://jquerymobile.com/blog/2011/08/03/jquery-mobile-beta-2-released/

Also you can use native form elements as well:

  • http://jquerymobile.com/demos/1.0rc2/docs/forms/forms-all-native.html


来源:https://stackoverflow.com/questions/7956948/tell-jquery-mobile-not-to-add-classes

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