Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
img次のCSSルールを持つ要素があります:
img
max-width: 100%; height: auto;
元の画像は正方形 ( 250pxX 250px) です。問題は、Internet Explorer 8 でテストしたところ、画像の縦と横の比率が維持されなかったことです。他のブラウザや IE9 でも動作します。IE6 と IE7 ではまだテストしていません。
250px
修正方法は?