に合わせ、私は次のコードを持っている:メイクの画像は、そのコンテナ
#container {
background: steelblue;
width: 333px;
height: 333px;
}
picture img {
object-fit: cover;
}
<div id="container">
<picture>
<img src="http://placekitten.com/g/300/300" alt="kitten">
</picture>
</div>
をどのように私は絵がコンテナボックスを埋めるために得ることができますか?
、「オブジェクト・フィット」はIEのためにサポートされておらず、完全にエッジのためにサポートされていませんあなたの使用のため;)https://caniuse.com/#search=object-fit –