(❀╹◡╹)
[JS] safari에서 animate scrollTop 이 작동하지 않을 경우 본문
$('html, body').animate({ scrollTop: 2000 }, 2000); // for all browsers
// $('html').animate({scrollTop: 2000}, 2000); // works in Firefox and Chrome
// $('body').animate({scrollTop: 2000}, 2000); // works in Safari
'Programing > WEB' 카테고리의 다른 글
[PHP] preg_match_all 에러 (0) | 2020.02.04 |
---|---|
[JS + PHP] 이미지 업로드 시 자동 회전되는 문제 해결 (0) | 2020.01.20 |
[JS] safari에서 iframe scroll이 작동하지 않는 경우 (0) | 2020.01.16 |
[JS] safari에서 click 이벤트가 작동하지 않는 경우 (0) | 2020.01.16 |
[PHP] 폴더 삭제 함수(하위 파일 삭제 처리 포함) (0) | 2019.12.20 |