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一区二区三区| 久久无码人妻一区二区三区午夜 | 极品人妻少妇一区二区三区| 国产精品一区二区久久精品| 日本福利一区二区| 精品乱子伦一区二区三区| 久久国产精品最新一区| 人妻少妇精品视频三区二区一区 | 日韩人妻一区二区三区免费| 亚洲无码一区二区三区| 搜日本一区二区三区免费高清视频| 国产无码一区二区在线| 精品一区二区三区在线播放视频| 国内精品视频一区二区三区八戒| 国产福利电影一区二区三区久久久久成人精品综合 | 国产精品综合一区二区三区| 国产韩国精品一区二区三区| 亚洲av乱码一区二区三区香蕉| 国产一区精品视频| 无码人妻精品一区二区三18禁| 欧美日韩一区二区成人午夜电影 | 亚洲.国产.欧美一区二区三区| 男人的天堂亚洲一区二区三区| 国产suv精品一区二区33| 精品日韩一区二区三区视频| 中文字幕一区二区三区乱码| 国产精品香蕉在线一区| 制服中文字幕一区二区| 精品国产一区二区三区久久狼| 久久一区二区明星换脸| 一区二区视频免费观看| 欧美亚洲精品一区二区| 亚洲视频一区在线| 中文字幕精品一区二区精品| 国产精品一区二区久久乐下载|