å²ã¨ä¸è¬çãªã®ãããããªããã©ã¤ãæè¿ç¥ã£ããã¿ãªã®ã§å ±æãã¾ãã
CSSã«ã¯:active
ã¨ããæ¬ä¼¼ã»ã¬ã¯ã¿ããã£ã¦ãè¦ç´ ãã¯ãªãã¯ãã¦ããéã ãç¹å®ã®ã¹ã¿ã¤ã«ãæå¹ã«ãããã¨ãã§ãã¾ããã¹ãã¼ããã©ã³ã®ãã©ã¦ã¶ã«ãå½ç¶ãã®:active
ã¯åå¨ãã¦ãããã¿ãããããã¨ã§ã¹ã¿ã¤ã«ãæå¹ã«ãããã¨ãã§ãã¾ãã
ã¨ããããAndroidã®Chromeã®ã¿è¥å¹²æåãç°ãªã£ã¦ããã:active
ã使ããã³ãã®é£ããæ©è½ã«ãªã£ã¦ãã¾ããã¨ããã®ããã¿ããã§ã¯ãªãé·æ¼ãããªãã¨æå¹ã«ãªããªãã®ã§ãã
The :active pseduo works on Chrome for Android, but only after a long press (and cancel of the dialog), it doesn't work for any other element as far as I can tell. It looks like a bug, and I have just raised it with the team.
ã¨ã®ãã¨ã§ããã® raise it ã¯
173976 - :active pseudo class does not work on Chrome for Android - chromium - Monorail
ãæãã¦ãã¾ããã©ããã
<meta name="viewport" content="user-scalable=no, initial-scale=1">
ãheadã¿ã°å ã«è¨è¿°ããããã¾ãã¯
<body ontouchstart="">
ã¨ããã¨è§£æ±ºãããããã®ã§ãããããã¯ãã¾ãã«ãæ±ãããã¯ã ã¨æãã¾ãã(ãããåè ã¯ã³ã¼ãã®æç¡ã§æåãå¤ãã£ã¦ãã¾ã)
ããããããå¾ãªãã¨ããç¶æ³ãããããè¦ãã¦ããã¨è¯ãããã§ãããªããJavaScriptã§ontouchstart
ã¨ontouchend
ãontouchcancel
ãæ¾ãã¨ããããã®ãè¯ãããã§ãã
ã¨ã¯ãããæ¼ä¸æã«ã¹ã¿ã¤ã«å¤æ´ç¯å²ããªãã¦ã¼ã¶ãæ°ã¥ããªãã¨ãããã¨ããããããããã¾ã§ã³ã¹ããããã¦ããã¹ããã¨ãã¨ããçåã¯æ®ãã¾ããããæ°ã¨æéããããªããã£ã¦ãããããã¨ããã¹ã¿ã³ã¹ã§ããã¹ãã¨æãã¾ããã