How to disable the default behavior of an Anchor in jQuery Mobile (iOS)

后端 未结 5 1340
悲哀的现实
悲哀的现实 2020-12-05 08:26

I am building an app for iPhone and iPad using PhoneGap and jQM


      
5条回答
  •  执念已碎
    2020-12-05 09:24

    Simplest way to get this to work on iPhone is to disable the webkit touch styles:

    document.getElementById('your element id').style.webkitTouchCallout = 'none';
    

提交回复
热议问题