2011-11-09 3 views
13

모바일 친화적 인 웹 사이트에서 버튼을 누를 때마다 슬라이드 효과가 전환 될 때마다 ... 제거 할 수있는 방법을 찾을 수 없습니다.JQuery Mobile에서 슬라이드 페이지 전환을 제거합니다.

<script> 
    $(document).bind("mobileinit", function() { 
     $.mobile.page.prototype.options.addBackBtn = true; 
     $.mobile.defaultPageTransition = 'none'; 
     $.mobile.useFastClick = false; 
}); 
</script> 

<a href="page.html" data-role="button" data-theme="f" data-transition="none">NEXT</a> 

하지만 나는 여전히 슬라이드 효과 전환이 있습니다

나는 추가했습니다.

어떻게 제거하나요? 감사합니다. 마르코

답변

15

이 나를 위해 노력하고 있습니다 :

$(document).bind('pageinit', function() { 
    $.mobile.defaultPageTransition = 'none'; 
}); 

jQuery를 버전 : 1.6.4
jQuery를 모바일 버전 : 1.0.1

라이브 예 :
http://jsfiddle.net/jaf8P/

관련 문제