DigitalOcean provides cloud products for every stage of your journey. Get started with $200 in free credit! In early 2017, I presented a couple of workshops on the topic of CSS feature detection, titled CSS Feature Detection in 2017. A friend of mine, Justin Slack from New Media Labs, recently sent me a link to the phenomenal Feature Query Manager extension (available for both Chrome and Firefox),
DigitalOcean provides cloud products for every stage of your journey. Get started with $200 in free credit! In Part 1 of this series, I debunked a few misconceptions that many people have around the Internet Explorer (IE) implementation of CSS grid. This article builds on that knowledge. It would be best to go back and read that article first if you havenât already. Today Iâm going to be tackling
CSS Gridã¯ãã©ã¦ã¶ã«2次å ã®ã¬ã¤ã¢ã¦ããä½æã§ããCSSã®ç´ æ´ãããæ©è½ã§ããä»ã¾ã§ã®å®è£ æ¹æ³ã«æ¯ã¹ã¦ãHTMLã¯ããç°¡åã§ãCSSã¯ããå ç¢ã«å®è£ ãããã¨ãã§ãã¾ãã ãããªCSS Gridã®å¯ä¸ã®åé¡ç¹ã¯ããã©ã¦ã¶ã®ãµãã¼ãã§ãããã 2018å¹´4æç¾å¨ãIE11ã®ãµãã¼ããå®å ¨ã¨ã¯è¨ããªãç¶æ³ã§ãããIEã¸ã®å¯¾å¿ã®ãã¤ã³ãããã£ããæ¼ããã¦ããã°ãCSS Gridã§ã¬ã¤ã¢ã¦ããå®è£ ãããã¨ãã§ãã¾ããflexboxãfloatããã©ã¼ã«ããã¯ã¨ãã¦ä½¿ç¨ããå¿ è¦ãããã¾ããã CSS Gridã使ç¨ããéãIE11ã«ã©ã®ããã«å¯¾å¿ãããã®ãããã®æ³¨æç¹ã¨å®è£ æ¹æ³ãç´¹ä»ãã¾ãã CSS Grid Application Layout in Production ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã æåã¯ãC
CSSã§ãããã¯è¦ç´ ãä¸ä¸ä¸å¤®æãï¼å¤©å°å·¦å³ã®ä¸å¤®ã«é ç½®ï¼ããæ¹æ³ã¯ããã¤ãããã¾ãããCSS Gridã使ãæ¹æ³ãç¾å¨ã§ã¯ä¸çªæ軽ã§ããCSS Gridã¬ã¤ã¢ã¦ãã使ãã¨ããã£ã2è¡ã§ä¸ä¸ä¸å¤®æããã§ãã¾ãã â¼ CSS .container { display: grid; place-items: center; } ãã¢ãå¥ã¦ã¤ã³ãã¦ã§åçãã ã½ã¼ã¹ã³ã¼ãã確èªãã Flexboxã ã¨3è¡ å¯¾ãã¦ãFlexboxã§ãä¸ä¸ä¸å¤®ã¯å®ç¾ã§ãã¾ããFlexboxã®å ´åãä¸å¤®æããããè¦ç´ ã®è¦ªã«å¯¾ãã¦ãã£ã3è¡è¨è¿°ããã ãã§ãããã¹ã¦ã®ã¢ãã³ãã©ã¦ã¶ã§ãã³ãã¼ãã¬ãã£ãã¯ã¹ãªãã§åä½ãã¾ãã â¼ CSS .container { display: flex; justify-content: center; align-items: center; } â¼ ç»åãã¦ã¤ã³ãã¦ã®ä¸ä¸ä¸å¤®ã«é ç½®
ãã®è¨äºã§ã¯ãHTMLã¨CSSã§è¦ç´ ãä¸å¤®é ç½®ããæ¹æ³ããã¿ã¼ã³å¥ã«ç´¹ä»ãã¦ããã¾ãã縦æ¹åã¨æ¨ªæ¹åããããã®æ¹æ³ãå ¨ã¦ã¾ã¨ãã¾ããã¾ããä¸å¤®å¯ãã§ããªããã¨ããã¨ãã®å¯¾å¦æ³ããã¿ã¼ã³å¥ã«ã¾ã¨ãã¦ããã¾ãï¼ã¹ãããããï¼ã 横ã»ã³ã¿ãªã³ã°ï¼å·¦å³ä¸å¤®å¯ãï¼ ã¾ãã¯ã横æ¹åã«ä¸å¤®å¯ãããæ¹æ³ãè¦ã¦ããã¾ãããã ãã®1ï¼æç« ãä¸å¤®æã æç« ãå·¦å³ä¸å¤®ã«æãããã¨ãã¯ããã®æç« ãå«ã¾ããè¦ç´ ããããã¯ãã®è¦ªè¦ç´ ã«å¯¾ãã¦text-align:centerãæå®ãã¾ãã
ããã«ã¡ã¯ãããã³ãã¨ã³ãã¨ã³ã¸ãã¢ã®ã¤ã£ã¡ã¼ã§ãã 2017å¹´4æ12æ¥ãã¤ãã«Windows Vistaã®ãµãã¼ãçµäºãã¾ããããããã«ãã£ã¦Internet Explorer 9ã®ãµãã¼ããçµäºï¼â»1ï¼ã¨ãªãã¾ãããCSSã¢ãã¡ã¼ã·ã§ã³ããdisplay:flexããã£ã¨é æ ®ãªã使ããï¼ï¼â»2ï¼ ã¨ãããã¨ã§ä»åã¯ãã¯ãã¹ãã§ã¼ãå¼ã®ã¹ã©ã¤ãã·ã§ã¼ããIE9ãåãæ¨ã¦ããã¨ã§ããã·ã³ãã«ã«å®è£ ãã¦ã¿ã¾ãããã â»1 WindowsãServerãé¤ã â»2 æ¥é è¾-ms-ã¯å¿ è¦ ä»åã¤ããã¹ã©ã¤ãã·ã§ã¼ ã¾ãã¯å®æããç¶æ ã確èªãã¦ã¿ã¾ãããã See the Pen 1702-completed by ligdsktschy (@lig-dsktschy) on CodePen. ä¸å®æéãã¨ã«ç»åãã¯ãã¹ãã§ã¼ãããã¹ã©ã¤ãã·ã§ã¼ã§ããæ¼åºã¨ãã¦ãºã¼ã ã®å¹æãå ãã¦ããã¾ãã ã¡
2017å¹´4æ11æ¥ãWindows Vistaã®ãµãã¼ããçµäºãã¾ããã ããã«ããIE9ã®ãµãã¼ãã¯å¿ è¦ãªããªããä»ã¾ã§èºèºãã¦ããHTMLãCSSãå©ç¨ã§ããããã«ãªãã¾ããã Flexboxã§ã³ã³ãã¼ãã³ãã¯ã©ãå®è£ ããã®ã ããããã°ã®å¯¾å¿æ¹æ³ã¯ã©ããããªã©ãããããå°ã£ãæã«ã©ãã©ãå©ç¨ãã¦ãããããHTMLãCSSã®ãªã½ã¼ã¹ãç´¹ä»ãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}