top of page
搜尋

Breakpoints

  • fzbg01
  • 2024年4月24日
  • 讀畢需時 1 分鐘

Breakpoints are customizable widths that determine how your responsive layout behaves across device or viewport sizes in Bootstrap.

Core concepts

Breakpoints are the building blocks of responsive design. Use them to control when your layout can be adapted at a particular viewport or device size.

Use media queries to architect your CSS by breakpoint. Media queries are a feature of CSS that allow you to conditionally apply styles based on a set of browser and operating system parameters. We most commonly use min-width in our media queries.

Mobile first, responsive design is the goal. Bootstrap’s CSS aims to apply the bare minimum of styles to make a layout work at the smallest breakpoint, and then layers on styles to adjust that design for larger devices. This optimizes your CSS, improves亚博体育 rendering time, and provides a great experience for your visitors.

Available breakpoints

Bootstrap亚博体育 includes six default breakpoints, sometimes referred to as grid tiers, for building responsively. These breakpoints can be customized开云体育 if you’re using our source Sass files.开云体育


 
 
 

最新文章

查看全部
JavaScript

Bring Bootstrap to life with our optional JavaScript plugins. Learn about each plugin, our data and programmatic API options, and more....

 
 
 
Browsers and devices

Learn about the browsers and devices, from modern to old, that are supported by Bootstrap, including known quirks and bugs for each....

 
 
 
Get started with Bootstrap

Bootstrap is a powerful, feature-packed frontend toolkit. Build anything—from prototype to production—in minutes. Quick start Get started...

 
 
 

Comments


bottom of page