pointer-eventsããããã£ã§noneãæå®ããã¨æåé¢ã«ç½®ããè¦ç´ ãç¡è¦ãã¦æ®éã«ãã¼ã¸æä½ãå¯è½ã«ãªãã¾ãããªã®ã§ããããã風ã«ãã¦ãããè¦ç´ ãopacityããããã£ã§é表示ã«ãã¦ããã°ãæ®æ®µã¯è¦ããªããã©ç¹å®ã®æä½ã§æåé¢ã«é£ã³åºãã¢ã¼ãã«ã»ã¦ã£ã³ãã¦ã¨ããç°¡åã«åºæ¥ã¾ããpointer-eventsããããã£ã£ã¦ãããã使ãæ¹ããããã«ããã®ï¼ Demo: Pure CSS Modal Window .window { opacity: 0; pointer-events: none; } ã§ãè¦ããªãã»æä½ã§ããªãã¦ã£ã³ãã¦ãä½ããã®ã§ã:targetæ¬ä¼¼ã¯ã©ã¹ã§è¡¨ç¤ºã®åæ¿ãè¡ãã°OKã§ãã .window:target { opacity: 1; pointer-events: auto; } ç°¡åï¼ããã¢ã®ããã«position: fixed;ã¨ããã¦ããã¨ããã
{{#tags}}- {{label}}
{{/tags}}