2014년 7월 3일 목요일

[CSS] 터치로 hover css 적용


$(document).ready(function() {
    $('.hover').bind('touchstart touchend', function(e) {
        e.preventDefault();
        $(this).toggleClass('hover_effect');
    });
});



출처 :
http://stackoverflow.com/questions/2851663/how-do-i-simulate-a-hover-with-a-touch-in-touch-enabled-browsers

댓글 없음:

댓글 쓰기