CSS3ããDIVä¸åã§åºæ¥ã表ç¾ãªãããè²ã ãããã§ãããã¡ãã£ã¨åã¾ã§è¶ é¢åã ã£ãããã¯ã¹ã®ãªã·ã£ã³ãã£ã¼ãªç·ã®è£ 飾ã¨ãã¼ããã¨ãã°ã©ãã«ãªããããããããDIVããã¯ã¹ä¸ã¤ã¨ã£ã¦ãè²ã ãªè£ 飾å¹æããããããããªãã¨æãä»æ¥ãã®é ã
ãããããONE DIVã®ãããªä¸ã¤ã®DIVã§è¡¨ç¾ã§ããã¢ã¤ã³ã³ãä½ã£ã¦ããµã¤ãããã£ã¦ãCSS3ãçªãè©°ããã¨è²ã ç¥ããã¨ãåºæ¥ã¦é¢ç½ããªãã¨æãããã§ãã
ã£ã¦ããããã§ãONE DIVç¨åã£ããã¨ã¯ã§ãã¾ããããä»æ¥ã¯ãããªDIVä¸åã§ä½¿ããããªããã¯ã¹ã®ä½ãæ¹ãããã¤ããç´¹ä»ï¼æ¬ä¼¼è¦ç´ 使ã£ã¦ã¡ãã£ã¨ã¡ããã¡ããããã縫ãä»ãå¹æã®ããã¯ã¹åºæ¥ããã¨ã以å¤ã¨ä½¿ããããªãã®ãé¸ãã ã¤ãããªã®ã§ãä¸åº¦è¦ã¦ã¿ã¦ããããã¨å¬ããã§ãï¼ã¡ãªã¿ã«ãIEãã§ãã¯ã¯9ã ããã¦ã¾ãã8ã¨ãã¯CSSPIEå½ããã§é å¼µã£ã¦ãªãã¨ãããæ¹åã§â¦ä½ãå¤ãªã¨ããã£ããç´ãã¾ãã®ã§æ¯éæãã¦ãã ããï¼ã£ã¦ããªãªã®ã§åèç¨åº¦ã«ã©ããï¼
ããã§ã¯ãè¡ã£ã¦ã¿ã¾ãããï¼
縫ãä»ãå¹æ
å®éè¦ãã¦ã¿ãã°ç°¡åã§ãæ¬ä¼¼è¦ç´ ä»ãã¦positionãabsoluteã«ãã¦ç·ã¨ã·ã£ãã¦ä»ããã ãã§ãï¼
åããããªæ¹æ³ã§ãæ¬ä¼¼è¦ç´ ã®positionãabsoluteãã¦ãä¸ä¸å·¦å³ã0pxã«æå®ããä¸ã§ç·ã¤ããã¨ããããªæãã®äºéç·ã£ã½ãå¹æãåºæ¥ã¾ãããããããããã¡ããªã¨ãã
ç¸ã«1pxã®è£ 飾ç·
ãªãã¦è¨ãã°ããã®ãããããªãã§ããããã使ããããªå¹æãªã®ã§ãç´¹ä»ãä¸ã¨ä¸å·¦å³ã®ç·è²ãå¤ãã¦ãããã¯ã¹ã·ã£ãã¦ã¨çµã¿åãããã°ãªããè¯ãæãã®ããã¯ã¹ãåºæ¥ãããã¾ããã
ããæããããªã°ã©ãã¼ã·ã§ã³å¹æã®ããã¯ã¹
ãã¼ããããã¯ããã¯ã¹ã«ã£ã¦ããããã¿ã³ã¨ãã«å¤ãæ°ããã¾ãããdivä¸åã§åºæ¥ããã§ä½ã£ã¦ããã¾ãããããããã®ãå¤ãã§ããã
ã°ã©ãã¯ã¸ã§ãã¬ã¼ã¿ã¼ã¨ã沢山ãããã§ãããããã®ã§æ®éã«èª¿æ´ãã¦ãããããã§ããã
追è¨ï¼ã°ã©ãã®æ§æãææé ãã¾ããã®ã§ä¿®æ£
ç«ä½ããã¯ã¹
tuts+ããã§ç´¹ä»ããã¦ãããã¥ã¼ããªã¢ã«ã§è¦ãå¹æã§ããåç´ã«é¢ç½ãã§ããããããããå¹æãä¼¼åããµã¤ãã£ã¦ä¸ã ã»ã³ã¹ããã¨ãããã¾ããããã®ãããã§ããã°CSS3ã§åºæ¥ã¡ãããã§ããã¼ã
ããããIEå ¨è¬ç¡çãIE9ã§ãå½±ã®ä½ç½®ããããããªãã¾ãã
追è¨ï¼ã¨æã£ãã-ms-transformã¤ãã¦ç¡ãã ãã ã£ããä¿®æ£ããã¦é ãã¾ããï¼
æ£åã®ä¸ã«åçã¨ã
ãããã£ã¼ã«åçã¨ãã§ä½¿ããã¨ãå¤ãæ°ããã¾ããã¼ãè§ä¸¸æ°å¤ãè¶ é«ããã¦åã«ãã¡ã¾ããã£ã¦å¹æã§ããã
å½ç¶IE9ã¯OKã ãã©ãIE8ããã¯æ£å表ç¾åºæ¥ã¦ãªãã£ãã
以ä¸ããããã§ããã§ããããï¼
ãªããã©ã£ãã§ä½¿ãããããã£ã¦ç©ãããã°ã使ãæ©ä¼ãã¼ã ããªã¼ã£ã¦ç©ã¾ã§è²ã ãã¨æãã¾ãã
è¶ ã©ãã§ãããã§ããããã®åçå¦ãã¦ãã大å¦çãããªã·ã£ã³ãã£ã¼ã§ããããã£ã¦è¨ã£ã¦ããã§ããããªã·ã£ã³ãã£ã¼ã£ã¦æµè¡ã£ã¦ããã§ãããï¼
ã¡ãªã¿ã«ããµã³ãã«ã§ä½¿ã£ã¦ãåã®åçã¯å»å¹´ã®ããã¦ã£ã³ã§çãå人æã§ããå¥ã«ãããã¤ç½ªã¨ãã§æã¾ã£ãããã§ã¯ããã¾ããã®ã§ãããããï¼
ããã§ã¯ãçæ§ããDIV&CSSã©ã¤ãããï¼