object-fitの例

装飾なし

cover

object-fit: cover;

contain

object-fit: contain;