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

          国产伦精品一区二区三区视频青涩| 久久久99久久| 91高清视频免费看| 国产精品入口麻豆原神| av一区二区三区黑人| 国产精品二三区| 在线观看日韩国产| 男女性色大片免费观看一区二区| 性做久久久久久免费观看欧美| 亚洲欧美日韩中文播放| 成人一区二区视频| 亚洲影视在线观看| 26uuu久久天堂性欧美| 国产精品中文有码| 亚洲人快播电影网| 欧美丰满高潮xxxx喷水动漫| 精品一区二区三区免费视频| 国产精品久久久久aaaa| 欧美美女一区二区三区| 国产成人8x视频一区二区| 亚洲无人区一区| 中文一区一区三区高中清不卡| 亚洲成人av一区二区三区| 在线成人免费观看| 色综合久久久网| 日本美女视频一区二区| 国产精品久久午夜| 日韩视频免费观看高清完整版在线观看 | 91小视频免费观看| 午夜成人免费视频| 中文字幕中文字幕一区| 欧美成人官网二区| 欧美日韩精品免费观看视频| 国产成人在线观看免费网站| 日韩成人精品在线| 亚洲激情av在线| 中文字幕精品综合| 日韩三级免费观看| 欧美日韩一级视频| 99久久99久久精品免费观看| 久久99久久精品| 日韩中文字幕亚洲一区二区va在线 | 蜜桃视频在线观看一区| 国产精品久久久久婷婷二区次| 国产成人综合网| 热久久一区二区| 丝瓜av网站精品一区二区| 亚洲精品日产精品乱码不卡| 中文av字幕一区| 国产精品久99| 亚洲欧美在线另类| 国产精品久久三区| 中文字幕一区二区日韩精品绯色| 色综合天天综合| 丁香六月综合激情| 国产在线国偷精品免费看| 久久精品国产99久久6| 美女爽到高潮91| 激情综合网激情| 国产精品影视在线观看| 国产精品自在欧美一区| 国产在线精品国自产拍免费| 国产精品77777竹菊影视小说| 欧美高清在线一区二区| 欧美高清在线一区二区| 国产精品久久久久久久久久久免费看| 99久久er热在这里只有精品66| 国产亚洲婷婷免费| 久久久精品tv| 日韩美女久久久| 亚洲午夜精品网| 蜜臀av一区二区| 国产69精品久久777的优势| 粉嫩绯色av一区二区在线观看 | 顶级嫩模精品视频在线看| 国产高清不卡二三区| 国产成人av电影在线| 一本到不卡免费一区二区| 欧美日韩一区不卡| 国产视频不卡一区| 亚洲一区二区美女| 精品中文字幕一区二区| aaa亚洲精品| 91精品国产综合久久久久久漫画 | 6080亚洲精品一区二区| 日韩欧美高清一区| 国产精品网站在线| 亚洲成人一区在线| 成人精品鲁一区一区二区| 欧美亚洲日本国产| 国产丝袜在线精品| 婷婷中文字幕综合| 成人一区二区三区视频在线观看 | 一区二区三区四区在线免费观看 | 欧美日韩国产一二三| 欧美一级搡bbbb搡bbbb| 亚洲国产精品精华液ab| 午夜一区二区三区视频| 福利电影一区二区| 日韩一区二区在线播放| 国产精品高潮久久久久无| 秋霞午夜av一区二区三区| 91丨九色porny丨蝌蚪| 精品日韩欧美一区二区| 亚洲成人免费看| av电影在线观看不卡| 日韩一卡二卡三卡四卡| 一区二区久久久久久| 成人美女在线观看| 精品国产污网站| 日韩精品91亚洲二区在线观看| 亚洲午夜国产一区99re久久| 岛国精品在线观看| 国产欧美一区二区三区在线老狼| 日韩精品一区在线观看| 亚洲国产精品自拍| 波多野结衣中文字幕一区二区三区 | 亚洲精品国久久99热| 韩国视频一区二区| 欧美一区二区高清| 日本一区中文字幕| 7777精品伊人久久久大香线蕉的| 欧美精品少妇一区二区三区| 亚洲天天做日日做天天谢日日欢 | 美女国产一区二区| 欧美在线免费观看亚洲| 亚洲精品视频在线| 日本大香伊一区二区三区| 亚洲人成在线观看一区二区| 成人免费观看视频| 日本一区免费视频| 成人免费毛片片v| 亚洲天堂免费看| 色欧美乱欧美15图片| 一个色在线综合| 6080国产精品一区二区| 免费av网站大全久久| 精品国产精品网麻豆系列| 国产精品资源在线看| 亚洲色图欧美偷拍| 在线亚洲高清视频| 五月天网站亚洲| 精品国精品国产尤物美女| 国产一区二区三区精品视频| 欧美激情综合五月色丁香小说| 午夜视频一区在线观看| 欧美日韩视频一区二区| 麻豆精品一二三| 久久影视一区二区| 成人免费视频视频在线观看免费| 日韩视频免费观看高清完整版在线观看| 日韩精品一区二区三区在线观看| 久久久久久久久久美女| www.久久久久久久久| 亚洲一二三四久久| 欧美va亚洲va香蕉在线| 国产成人免费在线观看不卡| 亚洲欧美电影院| 日韩精品一区二区三区蜜臀| 不卡视频一二三四| 日本在线不卡视频| 中文字幕av一区二区三区| 欧美精品电影在线播放| 东方欧美亚洲色图在线| 日本欧美肥老太交大片| 亚洲视频一二三| 亚洲精品在线观看网站| 色噜噜狠狠成人中文综合| 极品美女销魂一区二区三区免费| 欧美一级在线视频| 91伊人久久大香线蕉| 九九国产精品视频| 亚洲综合精品久久| 久久久精品免费免费| 欧美片网站yy| 99久久99久久久精品齐齐| 国产一区二区三区免费播放| 天天综合日日夜夜精品| 中文字幕字幕中文在线中不卡视频| 国产一区二区三区香蕉| 亚洲国产精品久久久久秋霞影院| 91蜜桃视频在线| 免费人成在线不卡| 一区二区三区在线免费视频| 国产精品免费aⅴ片在线观看| 国产精品一区二区三区乱码 | 五月天激情综合网| 综合网在线视频| 欧美国产97人人爽人人喊| 国产亚洲一区二区三区四区| 亚洲精品一区二区三区蜜桃下载| 美女性感视频久久| 亚洲成人激情社区| 一区二区三区中文字幕| 中文字幕不卡一区| 日本一区二区三级电影在线观看| 精品一二三四区| 丝袜亚洲另类欧美综合| 亚洲国产精品久久人人爱 | 欧美日韩精品免费观看视频|