精品久久久久久亚洲精品_成人午夜网站_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;">

          972aa.com艺术欧美| 国产一区在线看| 欧美韩日一区二区三区| 欧美成va人片在线观看| 欧美久久一二区| 欧美乱妇15p| 欧美久久久一区| 欧美综合色免费| 欧美日本一区二区三区| 欧美日韩在线直播| 欧美另类videos死尸| 欧美精品色综合| 欧美精品aⅴ在线视频| 欧美日韩精品一区二区天天拍小说 | 粉嫩av一区二区三区在线播放| 老司机精品视频在线| 加勒比av一区二区| 国产精品一区在线| 不卡电影一区二区三区| 色激情天天射综合网| 欧美精品乱码久久久久久按摩| 欧美日韩国产成人在线91| 欧美一区二视频| 亚洲精品一区在线观看| 国产精品乱码人人做人人爱| 亚洲婷婷综合久久一本伊一区| 一区二区三区欧美日| 天堂一区二区在线| 国产乱码精品一区二区三 | 中文字幕一区三区| 亚洲国产日韩综合久久精品| 日产欧产美韩系列久久99| 欧美aⅴ一区二区三区视频| 天天av天天翘天天综合网 | 七七婷婷婷婷精品国产| 国产一区二区精品久久91| 成人爽a毛片一区二区免费| 一本色道a无线码一区v| 在线播放日韩导航| 自拍av一区二区三区| 婷婷六月综合亚洲| 99久久免费视频.com| 99久久综合色| 日韩欧美一区二区在线视频| 国产精品午夜免费| 男女视频一区二区| 91久久久免费一区二区| 久久综合久久99| 肉丝袜脚交视频一区二区| 国产成人午夜片在线观看高清观看| 色一情一乱一乱一91av| 国产午夜三级一区二区三| 亚洲男同1069视频| 福利91精品一区二区三区| 欧美色欧美亚洲另类二区| 中文字幕电影一区| 另类综合日韩欧美亚洲| 欧美综合一区二区| 国产精品成人免费在线| 国产一区二区视频在线| 欧美tk—视频vk| 爽好久久久欧美精品| 一本色道久久综合亚洲91| 国产日韩欧美在线一区| 免费一级片91| 欧美丰满少妇xxxbbb| 亚洲精品国久久99热| 成人黄色国产精品网站大全在线免费观看| 欧美亚洲尤物久久| 一区二区三区久久| 99久久伊人网影院| 国产日本一区二区| 国产91丝袜在线播放0| 国产婷婷色一区二区三区在线| 美女在线观看视频一区二区| 欧美精品亚洲二区| 日产欧产美韩系列久久99| 色婷婷香蕉在线一区二区| 亚洲视频在线一区二区| 国产成人精品免费在线| 国产欧美日韩三级| 成人免费va视频| 亚洲三级在线免费| 欧美亚洲国产一区在线观看网站| 亚洲日本va午夜在线影院| 91麻豆产精品久久久久久 | 久久久亚洲高清| 国产精品18久久久久久久久久久久| 日韩精品中文字幕在线不卡尤物| 青青国产91久久久久久| 精品噜噜噜噜久久久久久久久试看 | 一本大道久久精品懂色aⅴ| 国产精品天天摸av网| 波多野结衣的一区二区三区| 国产精品成人免费在线| 在线观看一区日韩| 日韩精品一级二级| 精品国产污污免费网站入口| 风间由美中文字幕在线看视频国产欧美| 久久久不卡影院| 色综合久久久网| 日韩黄色免费电影| 久久综合精品国产一区二区三区| 成人激情电影免费在线观看| 亚洲美女免费在线| 欧美一区二区三区日韩视频| 国产成人精品亚洲日本在线桃色| 亚洲人成网站在线| 91麻豆精品国产自产在线观看一区 | 五月天国产精品| 久久久99精品免费观看不卡| av亚洲精华国产精华精| 午夜影院久久久| 国产拍欧美日韩视频二区| 欧美影视一区在线| 精品亚洲porn| 一区二区三区精品视频| ww亚洲ww在线观看国产| 91网站最新地址| 韩国三级中文字幕hd久久精品| 一区2区3区在线看| 欧美精品一区二区三区在线播放| 91免费观看在线| 国产一区二区美女| 肉肉av福利一精品导航| 国产精品久久久久久久久搜平片| 欧美一区二区三区色| 在线观看日韩av先锋影音电影院| 国产精品一二三四区| 午夜精品久久久久久久久| 国产精品美女久久久久高潮| 欧美一级国产精品| 91福利精品第一导航| 波多野结衣精品在线| 国产精品1024| 国产精品一区二区免费不卡| 首页国产欧美日韩丝袜| 亚洲欧美乱综合| 国产精品入口麻豆原神| 亚洲精品一区二区三区四区高清 | 日日骚欧美日韩| 亚洲午夜电影网| 成人欧美一区二区三区1314| 国产婷婷色一区二区三区| 欧美一级黄色片| 91麻豆精品国产91久久久更新时间 | 成人少妇影院yyyy| 国产成人综合在线| 国产另类ts人妖一区二区| 蜜桃av一区二区在线观看| 午夜精品久久久久久久久久| 亚洲韩国精品一区| 天天av天天翘天天综合网 | 日韩电影在线观看电影| 亚洲无线码一区二区三区| 亚洲国产一区二区视频| 性做久久久久久免费观看欧美| 一区二区三区免费| 亚洲一区二区三区四区不卡| 亚洲国产毛片aaaaa无费看| 亚洲bt欧美bt精品777| 午夜视频一区二区| 蜜臀av一区二区在线观看| 久久成人免费日本黄色| 极品瑜伽女神91| 国产精品正在播放| 91视视频在线直接观看在线看网页在线看 | a级精品国产片在线观看| 99久久久久免费精品国产| 色欧美片视频在线观看| 欧美挠脚心视频网站| 欧美一区二区三区播放老司机| 日韩欧美国产系列| 久久久久国产免费免费| 亚洲人精品午夜| 免费高清成人在线| 国产一区二区在线影院| caoporm超碰国产精品| 欧美日韩一区二区三区不卡| 日韩欧美三级在线| 亚洲欧洲成人精品av97| 日韩专区一卡二卡| 国产一区二区免费视频| 在线观看91精品国产入口| 欧美v日韩v国产v| 亚洲欧美色综合| 久久精品99久久久| 91亚洲国产成人精品一区二三| 欧美剧情片在线观看| 国产精品私人影院| 视频一区二区三区在线| 成人av片在线观看| 欧美一级欧美三级在线观看| 国产精品视频麻豆| 免费视频最近日韩| 色哟哟一区二区在线观看| 精品国产91洋老外米糕| 亚洲一区二区美女| 成人黄色在线网站| 精品国产一区二区三区久久久蜜月 |