📜  css 代码示例中的响应式图像

📅  最后修改于: 2022-03-11 14:48:00.852000             🧑  作者: Mango

代码示例1
.responsive_img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Prevent the image from stretching. So it crops the image to prevent from awkward stretching */
}