Images 路 Bootstrap v5.0 您所在的位置:网站首页 images/img_other.png Images 路 Bootstrap v5.0

Images 路 Bootstrap v5.0

2023-08-20 03:51| 来源: 网络整理| 查看: 265

View on GitHub 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鈥攁ll via classes.

On this page 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 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 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 Placeholder200x200 Placeholder200x200 Picture

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

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;


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有