object-fit :CSS 属性指定可替换元素的内容应该如何适应到其使用的高度和宽度确定的框
.fill {
object-fit: fill;
}
.contain {
object-fit: contain;
}
.cover {
object-fit: cover;
}
.none {
object-fit: none;
}
.scale-down {
object-fit: scale-down;
}
object-fit :CSS 属性指定可替换元素的内容应该如何适应到其使用的高度和宽度确定的框
.fill {
object-fit: fill;
}
.contain {
object-fit: contain;
}
.cover {
object-fit: cover;
}
.none {
object-fit: none;
}
.scale-down {
object-fit: scale-down;
}