精品久久久久久亚洲精品_成人午夜网站_www日本高清_亚洲精品久久久久午夜福

Grid system

Use our powerful mobile-first flexbox grid to build layouts of all shapes and sizes thanks to a twelve column system, six default responsive tiers, Sass variables and mixins, and dozens of predefined classes.

Example

Bootstrap’s grid system uses a series of containers, rows, and columns to layout and align content. It’s built with flexbox and is fully responsive. Below is an example and an in-depth explanation for how the grid system comes together.

New to or unfamiliar with flexbox? Read this CSS Tricks flexbox guide for background, terminology, guidelines, and code snippets.
One of three columns
One of three columns
One of three columns
<div class="container">
<div class="row">
<div class="col-sm">
  One of three columns
</div>
<div class="col-sm">
  One of three columns
</div>
<div class="col-sm">
  One of three columns
</div>
</div>
</div>

The above example creates three equal-width columns across all devices and viewports using our predefined grid classes. Those columns are centered in the page with the parent .container.

How it works

Breaking it down, here’s how the grid system comes together:

  • Our grid supports six responsive breakpoints. Breakpoints are based on min-width media queries, meaning they affect that breakpoint and all those above it (e.g., .col-sm-4 applies to sm, md, lg, xl, and xxl). This means you can control container and column sizing and behavior by each breakpoint.

  • Containers center and horizontally pad your content. Use .container for a responsive pixel width, .container-fluid for width: 100% across all viewports and devices, or a responsive container (e.g., .container-md) for a combination of fluid and pixel widths.

  • Rows are wrappers for columns. Each column has horizontal padding (called a gutter) for controlling the space between them. This padding is then counteracted on the rows with negative margins to ensure the content in your columns is visually aligned down the left side. Rows also support modifier classes to uniformly apply column sizing and gutter classes to change the spacing of your content.

  • Columns are incredibly flexible. There are 12 template columns available per row, allowing you to create different combinations of elements that span any number of columns. Column classes indicate the number of template columns to span (e.g., col-4 spans four). widths are set in percentages so you always have the same relative sizing.

  • Gutters are also responsive and customizable. Gutter classes are available across all breakpoints, with all the same sizes as our margin and padding spacing. Change horizontal gutters with .gx-* classes, vertical gutters with .gy-*, or all gutters with .g-* classes. .g-0 is also available to remove gutters.

  • Sass variables, maps, and mixins power the grid. If you don’t want to use the predefined grid classes in Bootstrap, you can use our grid’s source Sass to create your own with more semantic markup. We also include some CSS custom properties to consume these Sass variables for even greater flexibility for you.

Be aware of the limitations and bugs around flexbox, like the inability to use some HTML elements as flex containers.

Grid options

Bootstrap’s grid system can adapt across all six default breakpoints, and any breakpoints you customize. The six default grid tiers are as follow:

  • Extra small (xs)
  • Small (sm)
  • Medium (md)
  • Large (lg)
  • Extra large (xl)
  • Extra extra large (xxl)

As noted above, each of these breakpoints have their own container, unique class prefix, and modifiers. Here’s how the grid changes across these breakpoints:

xs
<576px
sm
≥576px
md
≥768px
lg
≥992px
xl
≥1200px
xxl
≥1400px
Container max-width None (auto) 540px 720px 960px 1140px 1320px
Class prefix .col- .col-sm- .col-md- .col-lg- .col-xl- .col-xxl-
# of columns 12
Gutter width 1.5rem (.75rem on left and right)
Custom gutters Yes
Nestable Yes
Column ordering Yes

Auto-layout columns

Utilize breakpoint-specific column classes for easy column sizing without an explicit numbered class like .col-sm-6.

Equal-width

For example, here are two grid layouts that apply to every device and viewport, from xs to xxl. Add any number of unit-less classes for each breakpoint you need and every column will be the same width.

1 of 2
2 of 2
1 of 3
2 of 3
3 of 3
<div class="container">
<div class="row">
<div class="col">
  1 of 2
</div>
<div class="col">
  2 of 2
</div>
</div>
<div class="row">
<div class="col">
  1 of 3
</div>
<div class="col">
  2 of 3
</div>
<div class="col">
  3 of 3
</div>
</div>
</div>

Setting one column width

Auto-layout for flexbox grid columns also means you can set the width of one column and have the sibling columns automatically resize around it. You may use predefined grid classes (as shown below), grid mixins, or inline widths. Note that the other columns will resize no matter the width of the center column.

1 of 3
2 of 3 (wider)
3 of 3
1 of 3
2 of 3 (wider)
3 of 3
<div class="container">
<div class="row">
<div class="col">
  1 of 3
</div>
<div class="col-6">
  2 of 3 (wider)
</div>
<div class="col">
  3 of 3
</div>
</div>
<div class="row">
<div class="col">
  1 of 3
</div>
<div class="col-5">
  2 of 3 (wider)
</div>
<div class="col">
  3 of 3
</div>
</div>
</div>

Variable width content

Use col-{breakpoint}-auto classes to size columns based on the natural width of their content.

1 of 3
Variable width content
3 of 3
1 of 3
Variable width content
3 of 3
<div class="container">
<div class="row justify-content-md-center">
<div class="col col-lg-2">
  1 of 3
</div>
<div class="col-md-auto">
  Variable width content
</div>
<div class="col col-lg-2">
  3 of 3
</div>
</div>
<div class="row">
<div class="col">
  1 of 3
</div>
<div class="col-md-auto">
  Variable width content
</div>
<div class="col col-lg-2">
  3 of 3
</div>
</div>
</div>

Responsive classes

Bootstrap’s grid includes six tiers of predefined classes for building complex responsive layouts. Customize the size of your columns on extra small, small, medium, large, or extra large devices however you see fit.

All breakpoints

For grids that are the same from the smallest of devices to the largest, use the .col and .col-* classes. Specify a numbered class when you need a particularly sized column; otherwise, feel free to stick to .col.

col
col
col
col
col-8
col-4
<div class="container">
<div class="row">
<div class="col">col</div>
<div class="col">col</div>
<div class="col">col</div>
<div class="col">col</div>
</div>
<div class="row">
<div class="col-8">col-8</div>
<div class="col-4">col-4</div>
</div>
</div>

Stacked to horizontal

Using a single set of .col-sm-* classes, you can create a basic grid system that starts out stacked and becomes horizontal at the small breakpoint (sm).

col-sm-8
col-sm-4
col-sm
col-sm
col-sm
<div class="container">
<div class="row">
<div class="col-sm-8">col-sm-8</div>
<div class="col-sm-4">col-sm-4</div>
</div>
<div class="row">
<div class="col-sm">col-sm</div>
<div class="col-sm">col-sm</div>
<div class="col-sm">col-sm</div>
</div>
</div>

Mix and match

Don’t want your columns to simply stack in some grid tiers? Use a combination of different classes for each tier as needed. See the example below for a better idea of how it all works.

.col-md-8
.col-6 .col-md-4
.col-6 .col-md-4
.col-6 .col-md-4
.col-6 .col-md-4
.col-6
.col-6
<div class="container">
<!-- Stack the columns on mobile by making one full-width and the other half-width -->
<div class="row">
<div class="col-md-8">.col-md-8</div>
<div class="col-6 col-md-4">.col-6 .col-md-4</div>
</div>

<!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop -->
<div class="row">
<div class="col-6 col-md-4">.col-6 .col-md-4</div>
<div class="col-6 col-md-4">.col-6 .col-md-4</div>
<div class="col-6 col-md-4">.col-6 .col-md-4</div>
</div>

<!-- Columns are always 50% wide, on mobile and desktop -->
<div class="row">
<div class="col-6">.col-6</div>
<div class="col-6">.col-6</div>
</div>
</div>

Row columns

Use the responsive .row-cols-* classes to quickly set the number of columns that best render your content and layout. Whereas normal .col-* classes apply to the individual columns (e.g., .col-md-4), the row columns classes are set on the parent .row as a shortcut. With .row-cols-auto you can give the columns their natural width.

Use these row columns classes to quickly create basic grid layouts or to control your card layouts.

Column
Column
Column
Column
<div class="container">
<div class="row row-cols-2">
<div class="col">Column</div>
<div class="col">Column</div>
<div class="col">Column</div>
<div class="col">Column</div>
</div>
</div>
Column
Column
Column
Column
<div class="container">
<div class="row row-cols-3">
<div class="col">Column</div>
<div class="col">Column</div>
<div class="col">Column</div>
<div class="col">Column</div>
</div>
</div>
Column
Column
Column
Column
<div class="container">
<div class="row row-cols-auto">
<div class="col">Column</div>
<div class="col">Column</div>
<div class="col">Column</div>
<div class="col">Column</div>
</div>
</div>
Column
Column
Column
Column
<div class="container">
<div class="row row-cols-4">
<div class="col">Column</div>
<div class="col">Column</div>
<div class="col">Column</div>
<div class="col">Column</div>
</div>
</div>
Column
Column
Column
Column
<div class="container">
<div class="row row-cols-4">
<div class="col">Column</div>
<div class="col">Column</div>
<div class="col-6">Column</div>
<div class="col">Column</div>
</div>
</div>
Column
Column
Column
Column
<div class="container">
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-4">
<div class="col">Column</div>
<div class="col">Column</div>
<div class="col">Column</div>
<div class="col">Column</div>
</div>
</div>

You can also use the accompanying Sass mixin, row-cols():

.element {
// Three columns to start
  @include row-cols(3);

// Five columns from medium breakpoint up
  @include media-breakpoint-up(md) {
@include row-cols(5);
}
}

Nesting

To nest your content with the default grid, add a new .row and set of .col-sm-* columns within an existing .col-sm-* column. Nested rows should include a set of columns that add up to 12 or fewer (it is not required that you use all 12 available columns).

Level 1: .col-sm-3
Level 2: .col-8 .col-sm-6
Level 2: .col-4 .col-sm-6
<div class="container">
<div class="row">
<div class="col-sm-3">
  Level 1: .col-sm-3
</div>
<div class="col-sm-9">
  <div class="row">
    <div class="col-8 col-sm-6">
      Level 2: .col-8 .col-sm-6
    </div>
    <div class="col-4 col-sm-6">
      Level 2: .col-4 .col-sm-6
    </div>
  </div>
</div>
</div>
</div>

Sass

When using Bootstrap’s source Sass files, you have the option of using Sass variables and mixins to create custom, semantic, and responsive page layouts. Our predefined grid classes use these same variables and mixins to provide a whole suite of ready-to-use classes for fast responsive layouts.

Variables

Variables and maps determine the number of columns, the gutter width, and the media query point at which to begin floating columns. We use these to generate the predefined grid classes documented above, as well as for the custom mixins listed below.

$grid-columns:      12;
$grid-gutter-width: 1.5rem;
$grid-breakpoints: (
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1400px
);
$container-max-widths: (
sm: 540px,
md: 720px,
lg: 960px,
xl: 1140px,
xxl: 1320px
);

Mixins

Mixins are used in conjunction with the grid variables to generate semantic CSS for individual grid columns.

// Creates a wrapper for a series of columns
@include make-row();

// Make the element grid-ready (applying everything but the width)
@include make-col-ready();
@include make-col($size, $columns: $grid-columns);

// Get fancy by offsetting, or changing the sort order
@include make-col-offset($size, $columns: $grid-columns);

Example usage

You can modify the variables to your own custom values, or just use the mixins with their default values. Here’s an example of using the default settings to create a two-column layout with a gap between.

.example-container {
@include make-container();
// Make sure to define this width after the mixin to override
  // `width: 100%` generated by `make-container()`
  width: 800px;
}

.example-row {
@include make-row();
}

.example-content-main {
@include make-col-ready();

@include media-breakpoint-up(sm) {
@include make-col(6);
}
@include media-breakpoint-up(lg) {
@include make-col(8);
}
}

.example-content-secondary {
@include make-col-ready();

@include media-breakpoint-up(sm) {
@include make-col(6);
}
@include media-breakpoint-up(lg) {
@include make-col(4);
}
}
Main content
Secondary content
<div class="example-container">
<div class="example-row">
<div class="example-content-main">Main content</div>
<div class="example-content-secondary">Secondary content</div>
</div>
</div>

Customizing the grid

Using our built-in grid Sass variables and maps, it’s possible to completely customize the predefined grid classes. Change the number of tiers, the media query dimensions, and the container widths—then recompile.

Columns and gutters

The number of grid columns can be modified via Sass variables. $grid-columns is used to generate the widths (in percent) of each individual column while $grid-gutter-width sets the width for the column gutters.

$grid-columns: 12 !default;
$grid-gutter-width: 1.5rem !default;

Grid tiers

Moving beyond the columns themselves, you may also customize the number of grid tiers. If you wanted just four grid tiers, you’d update the $grid-breakpoints and $container-max-widths to something like this:

$grid-breakpoints: (
xs: 0,
sm: 480px,
md: 768px,
lg: 1024px
);

$container-max-widths: (
sm: 420px,
md: 720px,
lg: 960px
);

When making any changes to the Sass variables or maps, you’ll need to save your changes and recompile. Doing so will output a brand new set of predefined grid classes for column widths, offsets, and ordering. Responsive visibility utilities will also be updated to use the custom breakpoints. Make sure to set grid values in px (not rem, em, or %).

返回頂部
精品久久久久久亚洲精品_成人午夜网站_www日本高清_亚洲精品久久久久午夜福

      9000px;">

          粉嫩一区二区三区在线看 | av午夜一区麻豆| 日本亚洲天堂网| 亚洲乱码中文字幕| 中文字幕一区二区三区色视频| 欧美成人精品3d动漫h| 欧美日韩一区二区在线观看| 色婷婷av一区二区三区gif| 99精品视频中文字幕| 成人一区二区三区视频在线观看 | aaa国产一区| 成人一区二区视频| 99久久婷婷国产| 成人免费视频app| va亚洲va日韩不卡在线观看| 成人免费高清在线| 一本一道综合狠狠老| eeuss国产一区二区三区| 白白色 亚洲乱淫| 99麻豆久久久国产精品免费 | 无吗不卡中文字幕| 亚洲大片精品永久免费| 三级久久三级久久久| 另类欧美日韩国产在线| 久久精品国产在热久久| 国产一区二区0| 成人午夜看片网址| 91国偷自产一区二区三区观看| 色婷婷久久久久swag精品| 欧美日韩中文一区| 日韩欧美国产综合| 国产精品福利一区| 亚洲国产一二三| 国产中文一区二区三区| 99精品久久只有精品| 在线电影国产精品| 国产日韩精品一区二区三区 | 欧美亚洲日本国产| 久久久天堂av| 亚洲综合在线免费观看| 久久精品国产亚洲a| 99re这里只有精品6| 欧美一区二区三区四区高清| 国产欧美一区二区精品秋霞影院 | 欧美日韩激情在线| 亚洲国产成人在线| 天堂蜜桃一区二区三区| 成人激情免费电影网址| 欧美日韩在线播放一区| 久久女同精品一区二区| 亚洲成人动漫一区| 成人av在线网站| 欧美一区二区视频在线观看2022| 国产欧美一区二区三区鸳鸯浴| 亚洲成人黄色影院| www.激情成人| 久久久久久久久久电影| 日本视频一区二区三区| 99riav久久精品riav| 久久婷婷国产综合国色天香| 午夜亚洲福利老司机| 99久久精品国产麻豆演员表| 欧美一级在线观看| 五月综合激情网| 在线观看国产精品网站| 中文字幕第一区综合| 国产福利91精品一区二区三区| 欧美一区二区三区公司| 亚洲国产精品一区二区www在线 | 国产精品美女一区二区| 黄页网站大全一区二区| 在线成人小视频| 亚洲成a人片综合在线| 色哟哟国产精品| **性色生活片久久毛片| 国产成人av福利| 国产三区在线成人av| 国产suv精品一区二区883| 日韩欧美一区电影| 蜜桃av一区二区三区| 欧美精品v日韩精品v韩国精品v| 亚洲一区在线观看网站| 在线观看一区二区精品视频| 一区二区三区精品视频在线| 色婷婷国产精品综合在线观看| 亚洲天堂a在线| 色偷偷一区二区三区| 亚洲男帅同性gay1069| 99久久免费国产| 国产精品蜜臀av| 99国产精品久久久久久久久久久| 中文字幕人成不卡一区| 色噜噜狠狠一区二区三区果冻| 亚洲男女毛片无遮挡| 色菇凉天天综合网| 天天影视网天天综合色在线播放 | 久久久久久夜精品精品免费| 成人免费毛片a| 亚洲精品网站在线观看| 欧美日韩一区二区三区在线 | 暴力调教一区二区三区| 亚洲一区二区在线免费看| 91精品国产高清一区二区三区蜜臀| 日韩精品亚洲一区| 久久久夜色精品亚洲| 91在线精品一区二区| 日韩av一二三| 日本一区二区在线不卡| 色94色欧美sute亚洲线路一ni| 日韩精品一卡二卡三卡四卡无卡| 久久久久国产免费免费| 欧洲精品一区二区三区在线观看| 日日夜夜免费精品视频| 国产精品久久久久久久久图文区| 在线免费观看视频一区| 激情五月婷婷综合网| 亚洲欧美二区三区| 欧美精品一区二区精品网| 99精品久久久久久| 经典三级视频一区| 亚洲一区视频在线观看视频| 2023国产精品视频| 在线观看网站黄不卡| 国产精品综合一区二区| 亚洲电影在线免费观看| 中文字幕精品综合| 51精品秘密在线观看| www.av精品| 国产美女主播视频一区| 午夜影院久久久| 国产精品毛片a∨一区二区三区| 884aa四虎影成人精品一区| 国产成人精品影院| 老司机精品视频在线| 亚洲乱码国产乱码精品精可以看| ww久久中文字幕| 欧美精品成人一区二区三区四区| 91免费视频网| 丁香激情综合国产| 老色鬼精品视频在线观看播放| 一区二区三区欧美在线观看| 国产精品美女久久久久av爽李琼| 亚洲精品在线免费观看视频| 欧美精品自拍偷拍| 欧洲一区二区三区免费视频| 国产**成人网毛片九色 | 国产麻豆精品在线观看| 蜜桃视频在线一区| 婷婷开心激情综合| 一区二区三区在线视频免费观看| 中文字幕一区不卡| 亚洲国产高清aⅴ视频| 国产精品丝袜一区| 国产人久久人人人人爽| 国产欧美精品一区二区色综合| 日韩欧美一区二区久久婷婷| 欧美一卡二卡在线| 欧美mv日韩mv| 久久蜜桃av一区二区天堂| 久久久久9999亚洲精品| 国产欧美一区二区精品性色| 国产精品高潮呻吟| 依依成人综合视频| 亚洲妇熟xx妇色黄| 奇米四色…亚洲| 国产精品456| av激情综合网| 在线国产亚洲欧美| 欧美男同性恋视频网站| 日韩欧美在线一区二区三区| 久久伊人蜜桃av一区二区| 精品少妇一区二区三区在线视频 | 日本韩国精品在线| 色综合久久中文综合久久牛| 色婷婷av一区二区三区gif| 欧美猛男男办公室激情| 欧美电影免费观看高清完整版在线 | 91麻豆免费看| 91麻豆精品国产91久久久更新时间 | 欧美性感一区二区三区| 欧美一区二区三区视频免费播放| 欧美成人精品高清在线播放| 亚洲国产精品精华液ab| 一区二区免费看| 经典三级在线一区| 色哟哟国产精品免费观看| 日韩免费高清av| 亚洲人成精品久久久久| 日韩二区三区四区| 成人午夜视频在线观看| 91麻豆精品国产自产在线观看一区 | 91精品麻豆日日躁夜夜躁| 久久精品一区二区三区不卡牛牛| 亚洲人快播电影网| 免费人成黄页网站在线一区二区| 国产不卡在线播放| 欧美麻豆精品久久久久久| 国产欧美一区二区精品忘忧草| 亚洲不卡一区二区三区| 国产99精品在线观看|