2013-07-11 2 views
0

내가 반응 형 웹 사이트를 부트 스트랩으로 코딩하고 데스크톱의 이미지에서 jQuery로 마우스 오버를하지만 Ipad에서 해당 이미지를 클릭하면 마우스 오버 기능이 작동하므로 버그가 있습니다.jQuery Mouseover on Ipad

내 ipad 웹 사이트에서이 기능을 사용하려면 마우스 오버가 시작되지 않습니다. 나는 어떻게 그럴 수 있니?

$('.image a img').mouseover(function(){ 
    $(this).next().fadeIn(); 
    }); 

    $('.texte').mouseout(function(){ 
    $(this).fadeOut(); 
    }); 

답변

3

아마이 question

if(!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/)) { 
    $('.image a img').mouseover(function(){ 
    $(this).next().fadeIn(); 
    }); 

    $('.texte').mouseout(function(){ 
    $(this).fadeOut(); 
    }); 
} 
+1

에있는 답변 감사하는 것은 너무 아주 잘 작동을 시도해보십시오

이 내 코드입니다! :) – user2507113