“Gambar responsif CSS” Kode Jawaban

Gambar responsif di CSS

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

Gambar responsif CSS

  <style>
#imgx img {
    float:left;
    margin:2px;
    border-radius:7px;
    display: block;
    max-width:100%;
    height:auto;
    width:100%;
}
  </style>
  
  
  
  
<div id="imgx" class="col-xs-12 col-sm-12" style="padding-bottom:5px;">
Xfantasia

responsif img

img,
video,
iframe {
  max-inline-size: 100%;
  block-size: auto;
}
Muddy Mockingbird

Jawaban yang mirip dengan “Gambar responsif CSS”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya