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

Spacing

Bootstrap includes a wide range of shorthand responsive margin, padding, and gap utility classes to modify an element’s appearance.

Margin and padding

Assign responsive-friendly margin or padding values to an element or a subset of its sides with shorthand classes. Includes support for individual properties, all properties, and vertical and horizontal properties. Classes are built from a default Sass map ranging from .25rem to 3rem.

Using the CSS Grid layout module? Consider using the gap utility.

Notation

Spacing utilities that apply to all breakpoints, from xs to xxl, have no breakpoint abbreviation in them. This is because those classes are applied from min-width: 0 and up, and thus are not bound by a media query. The remaining breakpoints, however, do include a breakpoint abbreviation.

The classes are named using the format {property}{sides}-{size} for xs and {property}{sides}-{breakpoint}-{size} for sm, md, lg, xl, and xxl.

Where property is one of:

  • m - for classes that set margin
  • p - for classes that set padding

Where sides is one of:

  • t - for classes that set margin-top or padding-top
  • b - for classes that set margin-bottom or padding-bottom
  • s - for classes that set margin-left or padding-left in LTR, margin-right or padding-right in RTL
  • e - for classes that set margin-right or padding-right in LTR, margin-left or padding-left in RTL
  • x - for classes that set both *-left and *-right
  • y - for classes that set both *-top and *-bottom
  • blank - for classes that set a margin or padding on all 4 sides of the element

Where size is one of:

  • 0 - for classes that eliminate the margin or padding by setting it to 0
  • 1 - (by default) for classes that set the margin or padding to $spacer * .25
  • 2 - (by default) for classes that set the margin or padding to $spacer * .5
  • 3 - (by default) for classes that set the margin or padding to $spacer
  • 4 - (by default) for classes that set the margin or padding to $spacer * 1.5
  • 5 - (by default) for classes that set the margin or padding to $spacer * 3
  • auto - for classes that set the margin to auto

(You can add more sizes by adding entries to the $spacers Sass map variable.)

Examples

Here are some representative examples of these classes:

.mt-0 {
  margin-top: 0 !important;
}

.ms-1 {
  margin-left: ($spacer * .25) !important;
}

.px-2 {
  padding-left: ($spacer * .5) !important;
  padding-right: ($spacer * .5) !important;
}

.p-3 {
  padding: $spacer !important;
}

Horizontal centering

Additionally, Bootstrap also includes an .mx-auto class for horizontally centering fixed-width block level content—that is, content that has display: block and a width set—by setting the horizontal margins to auto.

Centered element
<div class="mx-auto" style="width: 200px;">
  Centered element
</div>

Negative margin

In CSS, margin properties can utilize negative values (padding cannot). These negative margins are disabled by default, but can be enabled in Sass by setting $enable-negative-margins: true.

The syntax is nearly the same as the default, positive margin utilities, but with the addition of n before the requested size. Here’s an example class that’s the opposite of .mt-1:

.mt-n1 {
  margin-top: -0.25rem !important;
}

Gap

When using display: grid, you can make use of gap utilities on the parent grid container. This can save on having to add margin utilities to individual grid items (children of a display: grid container). Gap utilities are responsive by default, and are generated via our utilities API, based on the $spacers Sass map.

Grid item 1
Grid item 2
Grid item 3
<div class="d-grid gap-3">
  <div class="p-2 bg-light border">Grid item 1</div>
  <div class="p-2 bg-light border">Grid item 2</div>
  <div class="p-2 bg-light border">Grid item 3</div>
</div>

Support includes responsive options for all of Bootstrap’s grid breakpoints, as well as six sizes from the $spacers map (05). There is no .gap-auto utility class as it’s effectively the same as .gap-0.

Sass

Maps

Spacing utilities are declared via Sass map and then generated with our utilities API.

$spacer: 1rem;
$spacers: (
  0: 0,
  1: $spacer / 4,
  2: $spacer / 2,
  3: $spacer,
  4: $spacer * 1.5,
  5: $spacer * 3,
);

$negative-spacers: if($enable-negative-margins, negativify-map($spacers), null);

Utilities API

Spacing utilities are declared in our utilities API in scss/_utilities.scss. Learn how to use the utilities API.

    "margin": (
      responsive: true,
      property: margin,
      class: m,
      values: map-merge($spacers, (auto: auto))
    ),
    "margin-x": (
      responsive: true,
      property: margin-right margin-left,
      class: mx,
      values: map-merge($spacers, (auto: auto))
    ),
    "margin-y": (
      responsive: true,
      property: margin-top margin-bottom,
      class: my,
      values: map-merge($spacers, (auto: auto))
    ),
    "margin-top": (
      responsive: true,
      property: margin-top,
      class: mt,
      values: map-merge($spacers, (auto: auto))
    ),
    "margin-end": (
      responsive: true,
      property: margin-right,
      class: me,
      values: map-merge($spacers, (auto: auto))
    ),
    "margin-bottom": (
      responsive: true,
      property: margin-bottom,
      class: mb,
      values: map-merge($spacers, (auto: auto))
    ),
    "margin-start": (
      responsive: true,
      property: margin-left,
      class: ms,
      values: map-merge($spacers, (auto: auto))
    ),
    // Negative margin utilities
    "negative-margin": (
      responsive: true,
      property: margin,
      class: m,
      values: $negative-spacers
    ),
    "negative-margin-x": (
      responsive: true,
      property: margin-right margin-left,
      class: mx,
      values: $negative-spacers
    ),
    "negative-margin-y": (
      responsive: true,
      property: margin-top margin-bottom,
      class: my,
      values: $negative-spacers
    ),
    "negative-margin-top": (
      responsive: true,
      property: margin-top,
      class: mt,
      values: $negative-spacers
    ),
    "negative-margin-end": (
      responsive: true,
      property: margin-right,
      class: me,
      values: $negative-spacers
    ),
    "negative-margin-bottom": (
      responsive: true,
      property: margin-bottom,
      class: mb,
      values: $negative-spacers
    ),
    "negative-margin-start": (
      responsive: true,
      property: margin-left,
      class: ms,
      values: $negative-spacers
    ),
    // Padding utilities
    "padding": (
      responsive: true,
      property: padding,
      class: p,
      values: $spacers
    ),
    "padding-x": (
      responsive: true,
      property: padding-right padding-left,
      class: px,
      values: $spacers
    ),
    "padding-y": (
      responsive: true,
      property: padding-top padding-bottom,
      class: py,
      values: $spacers
    ),
    "padding-top": (
      responsive: true,
      property: padding-top,
      class: pt,
      values: $spacers
    ),
    "padding-end": (
      responsive: true,
      property: padding-right,
      class: pe,
      values: $spacers
    ),
    "padding-bottom": (
      responsive: true,
      property: padding-bottom,
      class: pb,
      values: $spacers
    ),
    "padding-start": (
      responsive: true,
      property: padding-left,
      class: ps,
      values: $spacers
    ),
    
返回頂部
精品久久久久久亚洲精品_成人午夜网站_www日本高清_亚洲精品久久久久午夜福

      9000px;">

          精品福利在线导航| 777xxx欧美| 美女www一区二区| 亚洲国产成人高清精品| 国产精品另类一区| 国产三级久久久| 日韩欧美一区在线观看| 欧美精品三级在线观看| 欧美精品一卡两卡| 欧美日本乱大交xxxxx| 欧美性视频一区二区三区| 在线视频一区二区三区| 一本色道久久综合亚洲91 | 日本欧美久久久久免费播放网| 一区二区久久久久久| 亚洲欧美国产三级| 一区二区三区**美女毛片| 亚洲成人午夜影院| 久久精品久久综合| 国产精品一卡二卡| eeuss鲁片一区二区三区 | 这里只有精品99re| 久久综合久久综合亚洲| 精品国产91洋老外米糕| 26uuu国产日韩综合| 日本一区二区在线不卡| 中文字幕一区免费在线观看| 国产精品的网站| 亚洲美女免费视频| 日韩av一级片| 成人免费三级在线| 欧美人xxxx| 国产日韩欧美精品电影三级在线| 中文字幕欧美国产| 亚洲国产精品一区二区久久| 麻豆精品视频在线观看免费| 国产很黄免费观看久久| 一本大道综合伊人精品热热| 欧美午夜电影一区| 26uuu国产日韩综合| 亚洲欧美日韩中文播放 | 午夜精品久久久久影视| 六月丁香婷婷久久| 91麻豆6部合集magnet| 日韩一区二区三免费高清| 国产精品久久午夜夜伦鲁鲁| 亚洲图片有声小说| 国精产品一区一区三区mba视频 | 欧美xxxxx牲另类人与| 国产精品久久久久久久久果冻传媒| 亚洲三级久久久| 另类小说综合欧美亚洲| 日本福利一区二区| 精品国产一区二区三区忘忧草| 亚洲欧美另类小说| 国产美女精品人人做人人爽| 欧美日韩一级二级三级| 中文字幕在线观看不卡视频| 免费观看在线色综合| 在线免费亚洲电影| 国产精品成人在线观看| 九九在线精品视频| 欧美日韩国产免费| 亚洲视频在线一区观看| 成人中文字幕电影| 久久蜜桃av一区精品变态类天堂| 午夜精品一区在线观看| 欧美综合天天夜夜久久| 欧美国产视频在线| 国产精品综合av一区二区国产馆| 88在线观看91蜜桃国自产| 一区二区三区蜜桃| 在线一区二区三区四区五区| 国产精品久久午夜夜伦鲁鲁| 粉嫩蜜臀av国产精品网站| 久久青草欧美一区二区三区| 日产欧产美韩系列久久99| 欧美亚洲动漫制服丝袜| 亚洲欧美激情在线| 99久久伊人网影院| 国产精品免费丝袜| 99精品视频中文字幕| 中文字幕一区二区三区视频| 国产精华液一区二区三区| 3751色影院一区二区三区| 亚洲成人av一区二区三区| 在线观看网站黄不卡| 午夜精品aaa| 9191精品国产综合久久久久久| 亚洲一区二区五区| 欧美丝袜自拍制服另类| 夜夜嗨av一区二区三区四季av| 91国产福利在线| 亚洲国产精品久久久久婷婷884| 欧美亚洲一区三区| 日韩av中文字幕一区二区| 日韩精品中午字幕| 国内精品不卡在线| 国产精品久久久久四虎| 日本高清无吗v一区| 青青草91视频| 中文字幕av一区二区三区免费看| 97精品视频在线观看自产线路二| 综合激情网...| 91精品国产欧美日韩| 激情综合五月婷婷| 亚洲三级免费电影| 在线综合亚洲欧美在线视频| 老司机精品视频线观看86| 欧美国产在线观看| 91精品视频网| 成人性生交大片免费看在线播放| 亚洲视频一区二区在线| 欧美一区二区视频在线观看| 久久er99热精品一区二区| 精品国产第一区二区三区观看体验| 国产成人在线视频播放| 一区二区三区精品久久久| 日韩欧美激情在线| 91视频在线看| 国产精品影音先锋| 亚洲一区在线观看免费观看电影高清 | 国产精品系列在线播放| 一区二区三区四区五区视频在线观看| 8x8x8国产精品| 91蜜桃网址入口| 国产经典欧美精品| 男人的天堂亚洲一区| 亚洲最大色网站| 久久久精品蜜桃| 欧美一级精品在线| 一本大道久久a久久综合| 国产一区二区视频在线播放| 一区二区三区欧美久久| 国产精品午夜春色av| 日韩精品一区二区三区视频| 欧美三级资源在线| 91亚洲国产成人精品一区二区三 | 亚洲欧美视频在线观看视频| 26uuu色噜噜精品一区| 337p亚洲精品色噜噜噜| caoporn国产一区二区| 国产一区二区0| 韩国毛片一区二区三区| 午夜av区久久| 亚洲综合av网| 一区二区三区中文字幕电影 | 欧美一三区三区四区免费在线看| 色屁屁一区二区| 99久久精品免费精品国产| 韩国一区二区三区| 麻豆91在线播放| 免费日本视频一区| 热久久国产精品| 麻豆精品在线看| 日本中文字幕一区二区有限公司| 亚洲一区在线播放| 夜夜嗨av一区二区三区四季av| 中文字幕一区二区日韩精品绯色| 久久久亚洲国产美女国产盗摄| 26uuu国产在线精品一区二区| 欧美成人一区二区三区片免费 | 国产精品一区二区免费不卡 | 天堂久久久久va久久久久| 午夜电影久久久| 麻豆精品国产91久久久久久| 日产国产欧美视频一区精品| 男人的天堂久久精品| 日本伊人午夜精品| 激情成人午夜视频| 寂寞少妇一区二区三区| 极品瑜伽女神91| 99精品国产99久久久久久白柏| 欧美性极品少妇| 欧美第一区第二区| 国产精品久久久久久久久晋中 | 国产精品久久久久久久久免费相片 | 国产一区欧美二区| 成人h版在线观看| 欧美怡红院视频| 欧美电影免费观看高清完整版在| 久久久久成人黄色影片| 综合激情网...| 蜜臀a∨国产成人精品| 国产伦精品一区二区三区视频青涩| 成人丝袜18视频在线观看| 色94色欧美sute亚洲线路二| 91精品福利在线一区二区三区| 2017欧美狠狠色| 亚洲久草在线视频| 久久精品国产精品亚洲红杏| 成人av午夜影院| 欧美一区二区美女| 一区二区在线免费观看| 国产在线一区观看| 欧美日韩视频第一区| 亚洲欧美一区二区在线观看| 蜜桃久久久久久| 欧美写真视频网站| 国产亚洲成aⅴ人片在线观看|