亚洲区国产区激情区无码区,国产成人mv视频在线观看,国产A毛片AAAAAA,亚洲精品国产首次亮相在线
基礎教程
菜鳥教程(cainiaoplus.com)
HTML/CSS
HTML基礎教程
HTML5基礎教程
HTML參考手冊
SVG 教程
CSS 教程
CSS 參考手冊
CSS3教程
Bootstrap3 教程
Bootstrap4 教程
Font Awesome圖標
JavaScript
JavaScript 教程
JavaScript 參考手冊
jQuery 教程
AJAX 教程
JSON 教程
AngularJS 教程
ReactJS 教程
NodeJS 教程
服務端開發(fā)
C++ 教程
Golang 教程
C 語言教程
PHP 教程
C# 教程
LINQ 教程
Lua 教程
Ruby 教程
Rust 教程
Linux 教程
R 語言教程
Docker 教程
Scala 教程
MatLab 教程
Erlang 教程
Java教程
Java 教程
SpringBoot 教程
JDBC 教程
JSP 教程
Servlet 教程
Maven 教程
Spring 教程
Python教程
Python 教程
Pandas教程
Numpy教程
Django 教程
Matplotlib 教程
Flask 教程
移動端
Swift 教程
Kotlin 教程
數據庫
SQL 教程
MongoDB 教程
SQLite 教程
PostgreSQL 教程
MySql 教程
Redis 教程
Elasticsearch 教程
經驗筆記
在線工具
首頁
Bootstrap4 教程
Bootstrap4 信息提示框
Bootstrap4 信息提示框關閉提示框示例
源代碼:
點擊運行
<!DOCTYPE html> <html> <head> <title>Bootstrap 示例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/css/bootstrap.min.css"> <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script> <script src="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>關閉提示框</h2> <p>我們可以在提示框中的 div 中添加 .alert-dismissible 類,然后在關閉按鈕的鏈接上添加 class="close" 和 data-dismiss="alert" 類來設置提示框的關閉操作。</p> <div class="alert alert-success alert-dismissible"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>成功!</strong> 指定操作成功提示信息。 </div> <div class="alert alert-info alert-dismissible"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>信息!</strong> 請注意這個信息。 </div> <div class="alert alert-warning alert-dismissible"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>警告!</strong> 設置警告信息。 </div> <div class="alert alert-danger alert-dismissible"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>錯誤!</strong> 失敗的操作。 </div> <div class="alert alert-primary alert-dismissible"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>首選!</strong> 這是一個重要的操作信息。 </div> <div class="alert alert-secondary alert-dismissible"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>次要的!</strong> 顯示一些不重要的信息。 </div> <div class="alert alert-dark alert-dismissible"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>深灰色!</strong> 深灰色提示框。 </div> <div class="alert alert-light alert-dismissible"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>淺灰色!</strong>淺灰色提示框。 </div> </div> </body> </html>
運行結果
Copyright ?2023
菜鳥教程
cainiaoplus.com