便å©éãã¦object-fitãã·ã§ã¯ããçµããªããªã£ã¦ããä»æ¥ãã®ããã modernizrãªã©ã使ããªãã¦ãCSSã ãã§IE10ï¼IE9ããããããï¼ï¼ã«å¯¾å¿ããæ¹æ³ãç¥ã£ãã®ã§æ¸ãã¦ããã¾ãã absoluteã«ãã¦tansformã使ã£ã¦ç»åã®çãä¸ãåããã¦ãã¾ãã ï¼transformã使ããªããã©ã¦ã¶ãªãã¦ããç¥ããªããï¼ ããã¾ã§ã¬ã¬ã·ã¼å¯¾å¿ã§ãå®å ¨å¯¾å¿ã§ã¯ãªãã§ããããã¶ã¤ã³ã«ãã£ã¦ã¯ããã§ååãªã±ã¼ã¹ãããã¨æãã®ã§ã html .media { position: relative; width: 500px; height: 200px; display: inline-block; overflow: hidden; } .media img { position: absolute; width: auto; height: auto; top: 50%; le
{{#tags}}- {{label}}
{{/tags}}