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

Buttons

Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.

Examples

Bootstrap includes several predefined button styles, each serving its own semantic purpose, with a few extras thrown in for more control.

<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn btn-dark">Dark</button>

<button type="button" class="btn btn-link">Link</button>
Conveying meaning to assistive technologies

Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the .visually-hidden class.

Disable text wrapping

If you don’t want the button text to wrap, you can add the .text-nowrap class to the button. In Sass, you can set $btn-white-space: nowrap to disable text wrapping for each button.

Button tags

The .btn classes are designed to be used with the <button> element. However, you can also use these classes on <a> or <input> elements (though some browsers may apply a slightly different rendering).

When using button classes on <a> elements that are used to trigger in-page functionality (like collapsing content), rather than linking to new pages or sections within the current page, these links should be given a role="button" to appropriately convey their purpose to assistive technologies such as screen readers.

Link
<a class="btn btn-primary" href="#" role="button">Link</a>
<button class="btn btn-primary" type="submit">Button</button>
<input class="btn btn-primary" type="button" value="Input">
<input class="btn btn-primary" type="submit" value="Submit">
<input class="btn btn-primary" type="reset" value="Reset">

Outline buttons

In need of a button, but not the hefty background colors they bring? Replace the default modifier classes with the .btn-outline-* ones to remove all background images and colors on any button.

<button type="button" class="btn btn-outline-primary">Primary</button>
<button type="button" class="btn btn-outline-secondary">Secondary</button>
<button type="button" class="btn btn-outline-success">Success</button>
<button type="button" class="btn btn-outline-danger">Danger</button>
<button type="button" class="btn btn-outline-warning">Warning</button>
<button type="button" class="btn btn-outline-info">Info</button>
<button type="button" class="btn btn-outline-light">Light</button>
<button type="button" class="btn btn-outline-dark">Dark</button>
Some of the button styles use a relatively light foreground color, and should only be used on a dark background in order to have sufficient contrast.

Sizes

Fancy larger or smaller buttons? Add .btn-lg or .btn-sm for additional sizes.

<button type="button" class="btn btn-primary btn-lg">Large button</button>
<button type="button" class="btn btn-secondary btn-lg">Large button</button>
<button type="button" class="btn btn-primary btn-sm">Small button</button>
<button type="button" class="btn btn-secondary btn-sm">Small button</button>

Disabled state

Make buttons look inactive by adding the disabled boolean attribute to any <button> element. Disabled buttons have pointer-events: none applied to, preventing hover and active states from triggering.

<button type="button" class="btn btn-lg btn-primary" disabled>Primary button</button>
<button type="button" class="btn btn-secondary btn-lg" disabled>Button</button>

Disabled buttons using the <a> element behave a bit different:

  • <a>s don’t support the disabled attribute, so you must add the .disabled class to make it visually appear disabled.
  • Some future-friendly styles are included to disable all pointer-events on anchor buttons.
  • Disabled buttons should include the aria-disabled="true" attribute to indicate the state of the element to assistive technologies.
<a href="#" class="btn btn-primary btn-lg disabled" tabindex="-1" role="button" aria-disabled="true">Primary link</a>
<a href="#" class="btn btn-secondary btn-lg disabled" tabindex="-1" role="button" aria-disabled="true">Link</a>

The .disabled class uses pointer-events: none to try to disable the link functionality of <a>s, but that CSS property is not yet standardized. In addition, even in browsers that do support pointer-events: none, keyboard navigation remains unaffected, meaning that sighted keyboard users and users of assistive technologies will still be able to activate these links. So to be safe, in addition to aria-disabled="true", also include a tabindex="-1" attribute on these links to prevent them from receiving keyboard focus, and use custom JavaScript to disable their functionality altogether.

Block buttons

Create responsive stacks of full-width, “block buttons” like those in Bootstrap 4 with a mix of our display and gap utilities. By using utilities instead of button specific classes, we have much greater control over spacing, alignment, and responsive behaviors.

<div class="d-grid gap-2">
<button class="btn btn-primary" type="button">Button</button>
<button class="btn btn-primary" type="button">Button</button>
</div>

Here we create a responsive variation, starting with vertically stacked buttons until the md breakpoint, where .d-md-block replaces the .d-grid class, thus nullifying the gap-2 utility. Resize your browser to see them change.

<div class="d-grid gap-2 d-md-block">
<button class="btn btn-primary" type="button">Button</button>
<button class="btn btn-primary" type="button">Button</button>
</div>

You can adjust the width of your block buttons with grid column width classes. For example, for a half-width “block button”, use .col-6. Center it horizontally with .mx-auto, too.

<div class="d-grid gap-2 col-6 mx-auto">
<button class="btn btn-primary" type="button">Button</button>
<button class="btn btn-primary" type="button">Button</button>
</div>

Additional utilities can be used to adjust the alignment of buttons when horizontal. Here we’ve taken our previous responsive example and added some flex utilities and a margin utility on the button to right align the buttons when they’re no longer stacked.

<div class="d-grid gap-2 d-md-flex justify-content-md-end">
<button class="btn btn-primary me-md-2" type="button">Button</button>
<button class="btn btn-primary" type="button">Button</button>
</div>

Button plugin

The button plugin allows you to create simple on/off toggle buttons.

Visually, these toggle buttons are identical to the checkbox toggle buttons. However, they are conveyed differently by assistive technologies: the checkbox toggles will be announced by screen readers as “checked”/“not checked” (since, despite their appearance, they are fundamentally still checkboxes), whereas these toggle buttons will be announced as “button”/“button pressed”. The choice between these two approaches will depend on the type of toggle you are creating, and whether or not the toggle will make sense to users when announced as a checkbox or as an actual button.

Toggle states

Add data-bs-toggle="button" to toggle a button’s active state. If you’re pre-toggling a button, you must manually add the .active class and aria-pressed="true" to ensure that it is conveyed appropriately to assistive technologies.

<button type="button" class="btn btn-primary" data-bs-toggle="button" autocomplete="off">Toggle button</button>
<button type="button" class="btn btn-primary active" data-bs-toggle="button" autocomplete="off" aria-pressed="true">Active toggle button</button>
<button type="button" class="btn btn-primary" disabled data-bs-toggle="button" autocomplete="off">Disabled toggle button</button>
<a href="#" class="btn btn-primary" role="button" data-bs-toggle="button">Toggle link</a>
<a href="#" class="btn btn-primary active" role="button" data-bs-toggle="button" aria-pressed="true">Active toggle link</a>
<a href="#" class="btn btn-primary disabled" tabindex="-1" aria-disabled="true" role="button" data-bs-toggle="button">Disabled toggle link</a>

Methods

You can create a button instance with the button constructor, for example:

var button = document.getElementById('myButton')
var bsButton = new bootstrap.Button(button)
Method Description
toggle Toggles push state. Gives the button the appearance that it has been activated.
dispose Destroys an element's button. (Removes stored data on the DOM element)

For example, to toggle all buttons

var buttons = document.querySelectorAll('.btn')
buttons.forEach(function (button) {
var button = new bootstrap.Button(button)
button.toggle()
})

Sass

Variables

$btn-padding-y:               $input-btn-padding-y;
$btn-padding-x:               $input-btn-padding-x;
$btn-font-family:             $input-btn-font-family;
$btn-font-size:               $input-btn-font-size;
$btn-line-height:             $input-btn-line-height;
$btn-white-space:             null; // Set to `nowrap` to prevent text wrapping

$btn-padding-y-sm:            $input-btn-padding-y-sm;
$btn-padding-x-sm:            $input-btn-padding-x-sm;
$btn-font-size-sm:            $input-btn-font-size-sm;

$btn-padding-y-lg:            $input-btn-padding-y-lg;
$btn-padding-x-lg:            $input-btn-padding-x-lg;
$btn-font-size-lg:            $input-btn-font-size-lg;

$btn-border-width:            $input-btn-border-width;

$btn-font-weight:             $font-weight-normal;
$btn-box-shadow:              inset 0 1px 0 rgba($white, .15), 0 1px 1px rgba($black, .075);
$btn-focus-width:             $input-btn-focus-width;
$btn-focus-box-shadow:        $input-btn-focus-box-shadow;
$btn-disabled-opacity:        .65;
$btn-active-box-shadow:       inset 0 3px 5px rgba($black, .125);

$btn-link-color:              $link-color;
$btn-link-hover-color:        $link-hover-color;
$btn-link-disabled-color:     $gray-600;

// Allows for customizing button radius independently from global border radius
$btn-border-radius:           $border-radius;
$btn-border-radius-sm:        $border-radius-sm;
$btn-border-radius-lg:        $border-radius-lg;

$btn-transition:              color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;

$btn-hover-bg-shade-amount:       15%;
$btn-hover-bg-tint-amount:        15%;
$btn-hover-border-shade-amount:   20%;
$btn-hover-border-tint-amount:    10%;
$btn-active-bg-shade-amount:      20%;
$btn-active-bg-tint-amount:       20%;
$btn-active-border-shade-amount:  25%;
$btn-active-border-tint-amount:   10%;

Mixins

There are three mixins for buttons: button and button outline variant mixins (both based on $theme-colors), plus a button size mixin.

@mixin button-variant(
$background,
$border,
$color: color-contrast($background),
$hover-background: if($color == $color-contrast-light, shade-color($background, $btn-hover-bg-shade-amount), tint-color($background, $btn-hover-bg-tint-amount)),
$hover-border: if($color == $color-contrast-light, shade-color($border, $btn-hover-border-shade-amount), tint-color($border, $btn-hover-border-tint-amount)),
$hover-color: color-contrast($hover-background),
$active-background: if($color == $color-contrast-light, shade-color($background,$btn-active-bg-shade-amount), tint-color($background, $btn-active-bg-tint-amount)),
$active-border: if($color == $color-contrast-light, shade-color($border, $btn-active-border-shade-amount), tint-color($border, $btn-active-border-tint-amount)),
$active-color: color-contrast($active-background),
$disabled-background: $background,
$disabled-border: $border,
$disabled-color: color-contrast($disabled-background)
) {
color: $color;
@include gradient-bg($background);
border-color: $border;
@include box-shadow($btn-box-shadow);

&:hover {
color: $hover-color;
@include gradient-bg($hover-background);
border-color: $hover-border;
}

.btn-check:focus + &,
&:focus {
color: $hover-color;
@include gradient-bg($hover-background);
border-color: $hover-border;
@if $enable-shadows {
  @include box-shadow($btn-box-shadow, 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5));
} @else {
  // Avoid using mixin so we can pass custom focus shadow properly
      box-shadow: 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5);
}
}

.btn-check:checked + &,
.btn-check:active + &,
&:active,
&.active,
.show > &.dropdown-toggle {
color: $active-color;
background-color: $active-background;
// Remove CSS gradients if they're enabled
    background-image: if($enable-gradients, none, null);
border-color: $active-border;

&:focus {
  @if $enable-shadows {
    @include box-shadow($btn-active-box-shadow, 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5));
  } @else {
    // Avoid using mixin so we can pass custom focus shadow properly
        box-shadow: 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5);
  }
}
}

&:disabled,
&.disabled {
color: $disabled-color;
background-color: $disabled-background;
// Remove CSS gradients if they're enabled
    background-image: if($enable-gradients, none, null);
border-color: $disabled-border;
}
}
@mixin button-outline-variant(
$color,
$color-hover: color-contrast($color),
$active-background: $color,
$active-border: $color,
$active-color: color-contrast($active-background)
) {
color: $color;
border-color: $color;

&:hover {
color: $color-hover;
background-color: $active-background;
border-color: $active-border;
}

.btn-check:focus + &,
&:focus {
box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
}

.btn-check:checked + &,
.btn-check:active + &,
&:active,
&.active,
&.dropdown-toggle.show {
color: $active-color;
background-color: $active-background;
border-color: $active-border;

&:focus {
  @if $enable-shadows {
    @include box-shadow($btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($color, .5));
  } @else {
    // Avoid using mixin so we can pass custom focus shadow properly
        box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
  }
}
}

&:disabled,
&.disabled {
color: $color;
background-color: transparent;
}
}
@mixin button-size($padding-y, $padding-x, $font-size, $border-radius) {
padding: $padding-y $padding-x;
@include font-size($font-size);
// Manually declare to provide an override to the browser default
  @include border-radius($border-radius, 0);
}

Loops

Button variants (for regular and outline buttons) use their respective mixins with our $theme-colors map to generate the modifier classes in scss/_buttons.scss.

@each $color, $value in $theme-colors {
.btn-#{$color} {
@include button-variant($value, $value);
}
}

@each $color, $value in $theme-colors {
.btn-outline-#{$color} {
@include button-outline-variant($value);
}
}
返回頂部
精品久久久久久亚洲精品_成人午夜网站_www日本高清_亚洲精品久久久久午夜福

      9000px;">

          中日韩av电影| 成人免费看视频| 色88888久久久久久影院野外| 日韩欧美国产小视频| 另类小说综合欧美亚洲| 欧美一区日本一区韩国一区| 日韩成人一级片| 日韩精品在线网站| 日韩一区二区免费电影| 韩日精品视频一区| 国产精品亲子乱子伦xxxx裸| 精品剧情v国产在线观看在线| 成人午夜av电影| 99久久久无码国产精品| 亚洲美女视频在线观看| 在线成人av网站| 成人免费视频视频在线观看免费| 国产剧情av麻豆香蕉精品| 国产精品传媒入口麻豆| 欧美精品久久久久久久多人混战| 欧美精品v国产精品v日韩精品| 欧美顶级少妇做爰| 欧美va亚洲va国产综合| 欧美激情一二三区| 日韩亚洲欧美在线| 国产无遮挡一区二区三区毛片日本| 色婷婷av一区二区三区大白胸| 亚洲一区二区在线观看视频| 国产亚洲综合性久久久影院| 国产精品久久久久一区二区三区共| 欧美国产日韩精品免费观看| 一级做a爱片久久| 亚洲欧洲美洲综合色网| 国产日韩欧美麻豆| 26uuu亚洲综合色欧美| 欧美久久久久久久久中文字幕| 日韩视频免费直播| 中文字幕中文字幕一区二区| 亚洲精品高清在线观看| 亚洲视频一区在线观看| 国产精品久久影院| 热久久一区二区| 日韩成人精品在线| 成人app软件下载大全免费| 国产呦萝稀缺另类资源| 美腿丝袜亚洲色图| 狠狠色狠狠色综合| 在线视频欧美精品| 在线日韩av片| 欧美激情一区二区三区不卡| 日韩在线播放一区二区| 午夜精品爽啪视频| 五月综合激情婷婷六月色窝| 国产福利一区二区三区| a亚洲天堂av| 在线精品视频免费观看| 欧美极品少妇xxxxⅹ高跟鞋| 天天色天天操综合| 欧美私模裸体表演在线观看| 91美女蜜桃在线| 欧美日韩不卡一区二区| 欧美一级黄色片| 亚洲影院理伦片| 色综合视频在线观看| 久久久久久久久久久电影| 国产欧美精品一区二区三区四区| 亚洲成在人线免费| 毛片av一区二区| 欧美群妇大交群的观看方式| 亚洲男人的天堂在线aⅴ视频| 不卡电影一区二区三区| 中文字幕乱码久久午夜不卡| 国产一区二区影院| 精品国产一二三区| 一区二区三区波多野结衣在线观看| 国产不卡视频一区二区三区| 91亚洲精品乱码久久久久久蜜桃| 国产精品丝袜一区| 国产成人一级电影| 国产欧美精品一区二区色综合 | 国产综合色在线视频区| 欧美zozo另类异族| 国产又粗又猛又爽又黄91精品| 欧美电影免费观看高清完整版 | 亚洲欧美区自拍先锋| 91麻豆免费看片| 夜夜爽夜夜爽精品视频| 欧美天堂一区二区三区| 亚洲bt欧美bt精品777| 日韩视频在线一区二区| 精品一区二区三区在线观看 | 成人美女视频在线观看| 亚洲三级电影网站| 欧美日韩精品一区二区三区四区| 日韩av中文字幕一区二区三区| 日韩免费福利电影在线观看| 国产一区二区伦理片| 日本一区二区三区高清不卡| 色综合天天性综合| 欧美大度的电影原声| 国产精华液一区二区三区| 成人免费小视频| 欧美视频三区在线播放| 精品在线播放免费| 亚洲精品中文字幕在线观看| 欧美视频日韩视频| 国产精品一区二区黑丝| 亚洲美女淫视频| 欧美精品一区二区三区视频| 91天堂素人约啪| 免费成人美女在线观看.| 国产精品美女久久久久久久久久久 | 免费观看一级特黄欧美大片| 国产喷白浆一区二区三区| 欧美色偷偷大香| 一区二区在线观看不卡| 欧美一级理论性理论a| 福利视频网站一区二区三区| 日韩激情视频网站| 国产精品久久久久久久久搜平片| 在线不卡一区二区| 91浏览器打开| 国产乱子伦一区二区三区国色天香 | 高清国产一区二区三区| 日韩和欧美一区二区三区| 欧美激情一二三区| 日韩欧美精品在线视频| 欧美性生活大片视频| 成人手机电影网| 精品一区二区三区影院在线午夜| 亚洲尤物视频在线| 国产精品久久久一本精品| 久久综合五月天婷婷伊人| 欧美精品九九99久久| 一本大道久久精品懂色aⅴ| 国产精品白丝jk黑袜喷水| 日本成人在线电影网| 亚洲一区二区精品3399| 国产欧美日韩不卡免费| 精品精品欲导航| 91精品一区二区三区久久久久久| 日本v片在线高清不卡在线观看| 亚洲欧美色图小说| 国产精品黄色在线观看| 欧美国产日韩a欧美在线观看| 久久亚洲春色中文字幕久久久| 日韩视频中午一区| 欧美变态tickling挠脚心| 欧美大片一区二区| 日韩一级二级三级| 精品日韩欧美在线| 日韩欧美一区二区久久婷婷| 欧美一区二区在线视频| 欧美一级高清片在线观看| 日韩一区二区免费在线观看| 日韩女优制服丝袜电影| 欧美第一区第二区| 久久久亚洲精华液精华液精华液| 精品日韩一区二区| 国产视频视频一区| 国产精品福利在线播放| 《视频一区视频二区| 亚洲图片欧美色图| 国产精品全国免费观看高清 | 欧美日韩精品免费观看视频| 欧美老年两性高潮| 欧美电影免费提供在线观看| 国产亚洲欧美在线| 最新不卡av在线| 亚洲va韩国va欧美va| 美女国产一区二区| 国产成人丝袜美腿| 色综合久久九月婷婷色综合| 欧美日本不卡视频| 精品久久一区二区| 亚洲欧洲美洲综合色网| 日韩精品视频网站| 国产99久久久国产精品免费看 | 日韩一区二区麻豆国产| 中文字幕欧美国产| 亚洲综合色丁香婷婷六月图片| 亚洲最大成人网4388xx| 蜜桃视频一区二区三区在线观看| 国产精品亚洲综合一区在线观看| 色哟哟一区二区三区| 欧美老肥妇做.爰bbww视频| 国产日韩欧美综合一区| 亚洲综合色噜噜狠狠| 国产高清无密码一区二区三区| 色婷婷综合五月| 2020国产成人综合网| 亚洲精品中文在线影院| 国产在线观看一区二区| 在线日韩国产精品| 欧美韩日一区二区三区四区| 亚洲妇熟xx妇色黄| 成人深夜在线观看| 欧美一区二区日韩一区二区| 一区二区成人在线观看| 不卡的av在线播放|