iPhone確èªç¨ãµã³ãã«. ãã¡ããããªã»ããcssã¯ä½¿ããã§ããã©ããããã§ããåä»ãªåé¡ã§ã¯ããã¾ããã ããã«ã¿ããã®åå¿é度ãæ©ããã æ¡å¤§ç¸®å°ãç¡å¹ã«ãããã¨ã«ãããããã¤ã¹ããããã¯ããã«ã¿ããã ï¼ãã¨èªèããæéãç縮ã§ãã¾ãã åºæ¬çã«ãºã¼ã ã¢ããã¯ã¦ã¼ã¶ããªãã£çã«å¯è½ã«ãã¾ãããã ã»user-scalable=no ã§è¨å®ããã¨æ¡å¤§ã縮å°ãã§ããªããªãã¾ãã iOSã§ã¯ãinputè¦ç´ ã«æå®ãã¦ãããã©ã³ããµã¤ãºãã16pxããä¸åãã¨ããã©ã¼ã«ã¹æã«ãºã¼ã ããã ã¨ããä»æ§ãããã¾ãã å
¥åãçµãã£ãæããå
¥åããã£ã³ã»ã«ããã¨ãã«ãºã¼ã ããã¾ã¾ãªã®ã§ãã¦ã¼ã¶ããã³ãã¢ã¦ããã¦çåã«æ»ããªãã¨ãã¨ã®è¦ãç®ã«æ» ⦠ã¼ãã¨ãã¦å®ç¾©ãããã¨ã§ãããã«ã¿ãããºã¼ã ãç¡å¹ã«ã§ãã¾ããã åèã§ãããæé ãç´¹ä»ããã¦ããã ãã¾ãã CSSã§ã§ãã¾ããã htmlã«å¯¾ãtouch-action: manipulation;ãæå®ããã¨ãã¿ããé£æãã¦ããºã¼ã ã¤ã³ããªãããã«ã§ãã¾ãã html { touch-action: manipulation; } ããã ãã§ããã é¢é£è¨äº iOS Safariã®åæã¹ã¿ã¤ã«ã§ãbodyã®æåãµã¤ãºã16pxã«ãªã£ã¦ããããã§ãããã é£æãã¦ããºã¼ã ã¤ã³ãããªãæ¹æ³. ãããªããiPhoneç¹æã®ãã®ã§ãã ã©ãããç¾è±¡ã説æãã«ããã®ã§ãå®éã«ãºã¼ã ãããç¶æ
ãä½ã£ã¦ã¿ã¾ãããä¸ã®ããã¹ããã©ã¼ã ãã¿ãããã¦ã¿ã¦ãã ãããiPhoneã®å ´åã®ã¿æ¨ªãåºãããã°ã©ã°ã©ãã¦ãã¾ãã¾ãã ã¹ããã§ã¦ã§ããµã¤ããè¦ã¦ããæãå
¥åãã©ã¼ã ãã¿ãããããç»é¢ãæ¡å¤§ãããã¨ãããã¾ãããããã®ç¾è±¡ãcssã§å¶å¾¡ã§ããæ¹æ³ãè¦ã¤ããã®ã§ãç´¹ä»ãã¾ããã¦ã§ããµã¤ãå¶ä½è
ã§å°ã£ã¦ããæ¹ã¯ãã²ã覧ãã ãããçµè«ããè¨ãã¨ããã©ã³ããµã¤ãºããããã ãã§ããã iPhoneï¼iPadï¼ã§ãã©ã¼ã ã«forcusããã¨ããºã¼ã ããªãããã«ããæ¹æ³ãããã¾ããï¼ ãµã³ãã« â»iPhoneã§ã²ããã¨åä½ã確èªã§ãã¾ã. å
¥åãã©ã¼ã ã®font-sizeãé¢ä¿ãã¦ãã. css 㧠body ã«ä¸è¨ãè¨å®-webkit-text-size-adjust: 100%; ãºã¼ã ã¤ã³ããºã¼ã ã¢ã¦ãã«ã¤ãã¦. iPhone ã§ã¦ã§ããµã¤ããè¦ã¦ãã¦ãããã¹ããã©ã¼ã ã«ã¿ããããã⦠ãããªæãã§ãºã¼ã ãã¦ãã¾ãçµé¨ã¯ãªãã§ããããã meta viewport ã«user-scalable=no ãæå®ãã åããéãç»é¢ãåãæ¿ããéã«ãã¿ããããã¾ãã ãããããã¨ããããé£æãã¦ãããã«ã¿ãããã¦ããºã¼ã ã¯ãããªããªãã¾ããã ä½ããtouchendã¤ãã³ãèªä½ããã£ã³ã»ã«ããã¦ãã¾ãããããã®å¾ã«addEventListener ã§ã¤ãã³ããç»é²ã§ããªããªãã¾ãã preventDefault ãããã®ã¯å¦çã®æå¾ã«æ¸ãã¾ãããã (追è¨ï¼cssã§å¯¾ ⦠æ©ã¾ããç¹. ã¹ããçã¢ããªã®ãZoomãã«ã¯ãPCçã¨åãããã«ãã¼ãã£ã³ã°ã®ä¸»å¬ãåå ãè¡ããã»ããã¹ã±ã¸ã¥ã¼ã«ãããã¨ãå¯è½ãã¢ããªã®ã¤ã³ã¹ãã¼ã«ã®ã¿ã§å ´æãé¸ã°ããããæ軽ã«ãªã³ã©ã¤ã³ä¼è°ãè¡ãã¾ãããã¡ãã§ã¯ãZoomã¢ããªã®ä½¿ãæ¹ã«ã¤ãã¦ãç´¹ä»ãã¾ãã