728x90 반응형 모바일4 react로 GA(google Analytics) mobile tracker 만들기 import { useEffect, useRef, useState } from "react"; import { useTracker } from "./util/Tracker"; export const Mobile = () => { const tracker = useTracker(); const [foldState, setFoldState] = useState(false); const ref = useRef(null); const [isTracked, setIsTracked] = useState(false); useEffect(() => { const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { // 요소가 .. 2024. 1. 30. 모바일 레이어 팝업 띄울때 스크롤 막기 레이어 띄울때$("body").bind('touchmove', function(e){e.preventDefault()}); 레이어 닫을때 $("body").unbind('touchmove'); 위와 같이 사용하면 된다. 2016. 2. 3. 모바일웹 viewport 관련 이란 뷰포트를 가장 많이 쓸것이다... 하지만 디자이너 320 이미지가 아니라..640 , 480 등의 사이즈로 이미지를 주었을때 min-width등으로 320을 주고~ max-width:100% 형태로 작업을 했다고 하자... 아이폰에서 가끔 정상적이지 않아서 강제로 사이즈를 형태로~~ 바꿀때가 있을것이다.. 이렇게 한경우에 갤럭시 S에서 동일하게 나오지 않는다...;; 근데 결론부터 얘기하면 이렇게 바꾸면된다..;; 왜그런지는 정확히 모르겠다..;; 흠..;; 2011. 4. 21. 모바일 웹앱 개발자가 알면좋은 43가지 UX , UI http://www.uxbooth.com/blog/essential-controls-for-web-applications/ 2010. 10. 15. 이전 1 다음 728x90 반응형