Images

      Documentation and examples for opting images into responsive behavior (so they never become larger than their parent elements) and add lightweight styles to them—all via classes.

      Responsive images

      Images in Bootstrap are made responsive with .img-fluid. This applies max-width: 100%; and height: auto; to the image so that it scales with the parent element.

      PlaceholderResponsive image
      <img src="..." class="img-fluid" alt="...">

      Image thumbnails

      In addition to our border-radius utilities, you can use .img-thumbnail to give an image a rounded 1px border appearance.

      A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera200x200
      <img src="..." class="img-thumbnail" alt="...">

      Aligning images

      Align images with the helper float classes or text alignment classes. block-level images can be centered using the .mx-auto margin utility class.

      Placeholder200x200 Placeholder200x200
      <img src="..." class="rounded float-start" alt="...">
      <img src="..." class="rounded float-end" alt="...">
      Placeholder200x200
      <img src="..." class="rounded mx-auto d-block" alt="...">
      Placeholder200x200
      <div class="text-center">
      <img src="..." class="rounded" alt="...">
      </div>

      Picture

      If you are using the <picture> element to specify multiple <source> elements for a specific <img>, make sure to add the .img-* classes to the <img> and not to the <picture> tag.

      ?<picture>
      <source srcset="..." type="image/svg+xml">
      <img src="..." class="img-fluid img-thumbnail" alt="...">
      </picture>
      

      Sass

      Variables

      Variables are available for image thumbnails.

      $thumbnail-padding:                 .25rem;
      $thumbnail-bg:                      $body-bg;
      $thumbnail-border-width:            $border-width;
      $thumbnail-border-color:            $gray-300;
      $thumbnail-border-radius:           $border-radius;
      $thumbnail-box-shadow:              $box-shadow-sm;
      
      返回頂部
      主站蜘蛛池模板: 成人精品一区二区不卡视频| 国产一区二区四区在线观看 | 一区高清大胆人体| 国产精品福利区一区二区三区四区| 一区免费在线观看| 中文字幕人妻无码一区二区三区| 国产精品伦一区二区三级视频 | 波多野结衣AV一区二区三区中文| 国内精自品线一区91| 国产精品无码一区二区在线观一 | 一区视频免费观看| 又硬又粗又大一区二区三区视频| 精品日韩亚洲AV无码一区二区三区| 亚洲av无码一区二区三区人妖 | 亚洲AV日韩AV天堂一区二区三区| 精品无码成人片一区二区98| 国产成人无码精品一区不卡| 国产熟女一区二区三区四区五区| 亚洲av成人一区二区三区| 国产精品亚洲一区二区三区在线观看| 亚洲国产高清在线一区二区三区| 老熟女高潮一区二区三区| 日韩av片无码一区二区三区不卡 | 欧美日韩精品一区二区在线观看 | 末成年女A∨片一区二区| 狠狠综合久久av一区二区| 国产一区二区三区在线看| 日韩精品福利视频一区二区三区| 国产一区二区女内射| 国产主播一区二区三区在线观看| 国偷自产一区二区免费视频| 国产一区二区三区小向美奈子 | 国产av熟女一区二区三区| 毛片一区二区三区无码| 国产成人精品一区二区秒拍 | 精品一区二区视频在线观看| 插我一区二区在线观看| 日本福利一区二区| 国产乱码一区二区三区四 | 一区二区三区视频在线观看| 鲁大师成人一区二区三区|