Bootstrap Vue Image Component - CoreUI
- Getting started
- Introduction
- Layout
- Breakpoints
- Columns
- Containers
- Grid
- Gutters
- Forms
- Overview
- Form control
- Select
- Checks & radios
- Range
- Floating labels
- Input group
- Layout
- Validation
- Components
- Accordion
- Alert
- Badge
- Breadcrumb
- Buttons
- Button Group
- Card
- Carousel
- Chart
- Close Button
- Collapse
- Dropdown
- Icon
- Image
- List Group
- Modal
- Navs & Tabs
- Navbar
- Offcanvas
- Pagination
- Placeholder
- Popover
- Progress
- Spinner
- Table
- Toast
- Tooltip
Bootstrap Vue image component with responsive behavior (so it's never become larger than their parent element) and special styles.
On this page- Responsive images
- Image thumbnails
- Aligning images
- API
- CImage
Responsive images #
Images in Bootstrap Vue are made responsive with fluid property. This applies max-width: 100%; and height: auto; to the image so that it scales with the parent element.
<CImage fluid src="/images/vue.jpg" /> 1Image thumbnails #
In addition to our border-radius utilitiesopen in new window, you can use propthumbnail to give an image a rounded 1px border appearance.
<CImage rounded thumbnail src="/images/vue400.jpg" width="200" height="200"/> 1Aligning images #
Align images with the align property.

<div class="clearfix"> <CImage align="start" rounded src="/images/vue400.jpg" width="200" height="200"/> <CImage align="end" rounded src="/images/vue400.jpg" width="200" height="200"/> </div> 1234
<div class="clearfix"> <CImage align="center" rounded src="/images/vue400.jpg" width="200" height="200"/> </div> 123
<div class="text-center"> <CImage rounded src="/images/vue400.jpg" width="200" height="200"/> </div> 123API #
CImage #
import { CImage } from '@coreui/bootstrap-vue' // or import CImage from '@coreui/bootstrap-vue/src/components/image/CImage' 123Props #
| Prop name | Description | Type | Values | Default |
|---|---|---|---|---|
| align | Set the horizontal aligment. | string | 'start', 'center', 'end' | - |
| fluid | Make image responsive. | boolean | - | |
| rounded | Make image rounded. | boolean | - | |
| thumbnail | Give an image a rounded 1px border appearance. | boolean | - |
Từ khóa » W-100 Bootstrap Vue
-
Size Props And Classes | Reference | BootstrapVue
-
Layout And Grid System | Components ... - Bootstrap Vue
-
Utility Classes | Reference | BootstrapVue
-
Button | Components | BootstrapVue
-
Vue Sizing - Examples & Tutorial. Bootstrap & Material Design
-
Vue.js - How To Set The Height Of The Box Remains The Same Even ...
-
How To Perform The Flexbox In Bootstrap-vue - Stack Overflow
-
Grid | BootstrapVue Argon Dashboard @ Creative Tim
-
Containers | Bootstrap Vue - CoreUI
-
Layout And Grid System | Components | BootstrapVue
-
Aspect Not Working Correctly With Images + Manual Fix #5288 - GitHub
-
大小规格· BootstrapVue - 逐浪CMS
-
Colors - Bootstrap
-
Layout And Grid System | Components | BootstrapVue