Images 路 Bootstrap v5.0 | 您所在的位置:网站首页 › images/img_other.png › Images 路 Bootstrap v5.0 |
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 imagesImages 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 thumbnailsIn 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 imagesAlign 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 PictureIf 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 VariablesVariables 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 实验室设备网 版权所有 |