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

Alerts

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

Examples

Alerts are available for any length of text, as well as an optional close button. For proper styling, use one of the eight required contextual classes (e.g., .alert-success). For inline dismissal, use the alerts JavaScript plugin.

<div class="alert alert-primary" role="alert">
A simple primary alert—check it out!
</div>
<div class="alert alert-secondary" role="alert">
A simple secondary alert—check it out!
</div>
<div class="alert alert-success" role="alert">
A simple success alert—check it out!
</div>
<div class="alert alert-danger" role="alert">
A simple danger alert—check it out!
</div>
<div class="alert alert-warning" role="alert">
A simple warning alert—check it out!
</div>
<div class="alert alert-info" role="alert">
A simple info alert—check it out!
</div>
<div class="alert alert-light" role="alert">
A simple light alert—check it out!
</div>
<div class="alert alert-dark" role="alert">
A simple dark alert—check it out!
</div>
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.

Use the .alert-link utility class to quickly provide matching colored links within any alert.

<div class="alert alert-primary" role="alert">
A simple primary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-secondary" role="alert">
A simple secondary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-success" role="alert">
A simple success alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-danger" role="alert">
A simple danger alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-warning" role="alert">
A simple warning alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-info" role="alert">
A simple info alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-light" role="alert">
A simple light alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-dark" role="alert">
A simple dark alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>

Additional content

Alerts can also contain additional HTML elements like headings, paragraphs and dividers.

<div class="alert alert-success" role="alert">
<h4 class="alert-heading">Well done!</h4>
<p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.</p>
<hr>
<p class="mb-0">Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p>
</div>

Dismissing

Using the alert JavaScript plugin, it’s possible to dismiss any alert inline. Here’s how:

  • Be sure you’ve loaded the alert plugin, or the compiled Bootstrap JavaScript.
  • Add a close button and the .alert-dismissible class, which adds extra padding to the right of the alert and positions the close button.
  • On the close button, add the data-bs-dismiss="alert" attribute, which triggers the JavaScript functionality. Be sure to use the <button> element with it for proper behavior across all devices.
  • To animate alerts when dismissing them, be sure to add the .fade and .show classes.

You can see this in action with a live demo:

<div class="alert alert-warning alert-dismissible fade show" role="alert">
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
When an alert is dismissed, the element is completely removed from the page structure. If a keyboard user dismisses the alert using the close button, their focus will suddenly be lost and, depending on the browser, reset to the start of the page/document. For this reason, we recommend including additional JavaScript that listens for the closed.bs.alert event and programmatically sets focus() to the most appropriate location in the page. If you’re planning to move focus to a non-interactive element that normally does not receive focus, make sure to add tabindex="-1" to the element.

Sass

Variables

$alert-padding-y:               $spacer;
$alert-padding-x:               $spacer;
$alert-margin-bottom:           1rem;
$alert-border-radius:           $border-radius;
$alert-link-font-weight:        $font-weight-bold;
$alert-border-width:            $border-width;
$alert-bg-scale:                -80%;
$alert-border-scale:            -70%;
$alert-color-scale:             40%;
$alert-dismissible-padding-r:   $alert-padding-x * 3; // 3x covers width of x plus default padding on either side

Variant mixin

Used in combination with $theme-colors to create contextual modifier classes for our alerts.

@mixin alert-variant($background, $border, $color) {
color: $color;
@include gradient-bg($background);
border-color: $border;

.alert-link {
color: shade-color($color, 20%);
}
}

Loop

Loop that generates the modifier classes with the alert-variant() mixin.

// Generate contextual modifier classes for colorizing the alert.

@each $state, $value in $theme-colors {
$alert-background: shift-color($value, $alert-bg-scale);
$alert-border: shift-color($value, $alert-border-scale);
$alert-color: shift-color($value, $alert-color-scale);
@if (contrast-ratio($alert-background, $alert-color) < $min-contrast-ratio) {
$alert-color: mix($value, color-contrast($alert-background), abs($alert-color-scale));
}
.alert-#{$state} {
@include alert-variant($alert-background, $alert-border, $alert-color);
}
}

JavaScript behavior

Triggers

Enable dismissal of an alert via JavaScript:

var alertList = document.querySelectorAll('.alert')
alertList.forEach(function (alert) {
new bootstrap.Alert(alert)
})

Or with data attributes on a button within the alert, as demonstrated above:

<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>

Note that closing an alert will remove it from the DOM.

Methods

You can create an alert instance with the alert constructor, for example:

var myAlert = document.getElementById('myAlert')
var bsAlert = new bootstrap.Alert(myAlert)

This makes an alert listen for click events on descendant elements which have the data-bs-dismiss="alert" attribute. (Not necessary when using the data-api’s auto-initialization.)

Method Description
close Closes an alert by removing it from the DOM. If the .fade and .show classes are present on the element, the alert will fade out before it is removed.
dispose Destroys an element's alert. (Removes stored data on the DOM element)
getInstance Static method which allows you to get the alert instance associated to a DOM element, you can use it like this: bootstrap.Alert.getInstance(alert)
var alertNode = document.querySelector('.alert')
var alert = bootstrap.Alert.getInstance(alertNode)
alert.close()

Events

Bootstrap’s alert plugin exposes a few events for hooking into alert functionality.

Event Description
close.bs.alert Fires immediately when the close instance method is called.
closed.bs.alert Fired when the alert has been closed and CSS transitions have completed.
var myAlert = document.getElementById('myAlert')
myAlert.addEventListener('closed.bs.alert', function () {
// do something, for instance, explicitly move focus to the most appropriate element,
  // so it doesn't get lost/reset to the start of the page
  // document.getElementById('...').focus()
})
返回頂部
精品久久久久久亚洲精品_成人午夜网站_www日本高清_亚洲精品久久久久午夜福

      9000px;">

          国产亚洲欧美日韩日本| 欧美视频一二三区| 日韩精品高清不卡| 亚洲精品乱码久久久久久黑人| 久久久亚洲高清| 欧美成人乱码一区二区三区| 欧美日韩国产天堂| 色视频成人在线观看免| 91毛片在线观看| 成人av电影在线| 成人免费视频一区| 91一区二区在线| 91在线国内视频| 成人av在线影院| fc2成人免费人成在线观看播放 | 欧美午夜精品久久久| 99在线精品视频| 成人av电影免费在线播放| 色婷婷久久久综合中文字幕| 日本精品免费观看高清观看| 欧美色中文字幕| 91精品国产综合久久福利软件 | 伊人夜夜躁av伊人久久| 亚洲一区二区三区视频在线| 午夜一区二区三区视频| 亚洲成av人片在线| 久久69国产一区二区蜜臀| 狠狠色丁香久久婷婷综| 国产成人午夜99999| 91免费看视频| 欧美裸体一区二区三区| 337p日本欧洲亚洲大胆精品| 国产精品麻豆欧美日韩ww| 亚洲精品国产精品乱码不99| 日韩不卡一区二区三区| 精品一区二区三区久久| 成人黄色综合网站| 欧美日韩五月天| 国产亚洲成av人在线观看导航| 亚洲欧美日韩国产手机在线| 免费一级欧美片在线观看| 不卡电影免费在线播放一区| 欧美老女人第四色| 亚洲国产精品成人久久综合一区| 亚洲一卡二卡三卡四卡五卡| 国产资源在线一区| 欧美日韩卡一卡二| 国产精品久久久久一区| 美女视频免费一区| 欧美亚洲日本一区| 中文字幕免费观看一区| 日韩av一级片| 91丨九色porny丨蝌蚪| 精品美女在线播放| 一区二区三国产精华液| 成人性生交大合| 精品少妇一区二区三区在线视频 | 精品美女在线观看| 亚洲bdsm女犯bdsm网站| 99久久精品一区| 久久久不卡网国产精品一区| 石原莉奈一区二区三区在线观看| 99re在线精品| 欧美韩日一区二区三区| 久久精品国产99国产| 色噜噜狠狠成人网p站| 国产精品久久久久久久久图文区| 国产在线精品一区二区三区不卡| 欧美性色aⅴ视频一区日韩精品| 久久久午夜精品| 久久精品国产99久久6| 欧美一区日韩一区| 日韩av二区在线播放| 欧美男人的天堂一二区| 午夜久久久影院| 欧美日韩一区在线观看| 亚洲一区日韩精品中文字幕| 99久久精品久久久久久清纯| 国产三级一区二区| 国产精品亚洲综合一区在线观看| 精品福利一二区| 蜜臀av性久久久久蜜臀aⅴ四虎 | 激情图片小说一区| 欧美成人三级电影在线| 蜜臀国产一区二区三区在线播放| 337p亚洲精品色噜噜噜| 美女性感视频久久| 精品日韩一区二区| 国产精品资源站在线| 国产日韩欧美制服另类| 国产91丝袜在线播放0| 久久精品亚洲精品国产欧美kt∨ | 日本中文字幕一区| 日韩一区二区高清| 国模一区二区三区白浆| 日本一区免费视频| 99视频精品在线| 亚洲成人av电影在线| 91精品国产黑色紧身裤美女| 麻豆精品国产传媒mv男同| 欧美r级电影在线观看| 国产美女在线观看一区| 国产精品久久久爽爽爽麻豆色哟哟| 99久久99精品久久久久久| 一区二区三区四区在线播放| 欧美三级视频在线| 国产在线日韩欧美| 亚洲欧洲成人自拍| 911精品产国品一二三产区| 国产麻豆精品在线观看| 亚洲欧美另类小说视频| 91精品免费观看| 成人国产电影网| 日韩av午夜在线观看| 国产丝袜美腿一区二区三区| 欧美亚洲国产一区在线观看网站 | 亚洲精品视频在线| 久久久天堂av| 欧美亚洲国产一区二区三区| 国内精品久久久久影院一蜜桃| 综合分类小说区另类春色亚洲小说欧美| 欧美日韩国产另类不卡| 成人激情图片网| 蜜臂av日日欢夜夜爽一区| 亚洲婷婷在线视频| 久久综合九色综合97婷婷女人| 91福利在线观看| 不卡的电影网站| 久久er精品视频| 亚洲一区中文日韩| 一色桃子久久精品亚洲| 日韩欧美精品三级| 欧美日韩在线播放三区四区| 成人午夜在线播放| 久久精品噜噜噜成人88aⅴ| 一区二区三区中文在线观看| 久久久久久久久伊人| 日韩欧美久久久| 欧美电影在哪看比较好| 色综合中文综合网| 91精品国产入口| 色综合久久中文综合久久牛| 福利视频网站一区二区三区| 五月天网站亚洲| 亚洲美女一区二区三区| 中文字幕乱码亚洲精品一区| 2欧美一区二区三区在线观看视频| 欧美一级日韩不卡播放免费| 欧美在线视频不卡| 在线免费不卡电影| 在线视频一区二区免费| www.综合网.com| 成人精品一区二区三区四区| 国产一区91精品张津瑜| 国产精品一区二区在线看| 激情综合网天天干| 久草热8精品视频在线观看| 久久激情综合网| 国内欧美视频一区二区| 久久se精品一区二区| 麻豆精品一区二区| 久久精品999| 国产一区二区三区免费观看| 韩国v欧美v日本v亚洲v| 国产精品一区二区x88av| 国产aⅴ综合色| 成人97人人超碰人人99| 91女厕偷拍女厕偷拍高清| 色一区在线观看| 91精品国产欧美一区二区| 欧美mv日韩mv| 国产女人aaa级久久久级| 国产精品久久久久影院亚瑟| 亚洲日本va在线观看| 亚洲高清三级视频| 日本不卡一二三| 国产成人精品免费在线| 99国产精品久久久久久久久久久| 色8久久精品久久久久久蜜| 欧美日韩高清影院| 国产欧美一区二区在线观看| 综合分类小说区另类春色亚洲小说欧美| 一区二区三区av电影| 久久av资源网| 99久久免费精品| 日韩三级在线免费观看| 国产精品天干天干在观线| 亚洲国产综合在线| 国产丶欧美丶日本不卡视频| 欧美日韩一区二区三区在线看| 日韩欧美一级二级三级久久久| 国产精品全国免费观看高清 | 国内精品嫩模私拍在线| 在线观看成人小视频| 日韩你懂的电影在线观看| 欧美激情综合五月色丁香小说| 亚洲乱码日产精品bd| 精品一区二区三区在线观看 | 一区二区三区av电影 | 怡红院av一区二区三区|