How to use jQuery Mobile for its touch event support only (no UI enhancements)?

前端 未结 8 674
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-04 07:09

I’m working on a web app that has its own look and feel. I want to use jQuery Mobile for the touch events support only.

When I link jquery.mobile.min.js (without li

8条回答
  •  误落风尘
    2020-12-04 07:33

    taking care of this particular problem at init time is nearly impossible, your best bet is to use data-role="none" on the ui element that you do not want default styling to happen on as such:

    ​​​​​​​​​
    

    check it out at http://jsfiddle.net/JGgrw/13/

提交回复
热议问题