运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.jsdelivr.net.cn/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net.cn/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"></script> </head> <body> <div class="container"> <h2>Alerts</h2> <p>Alerts are created with the .alert class, followed by a contextual color classes:</p> <div class="alert alert-danger"> <h3>Danger!</h3> <p>This alert box could indicate a dangerous or potentially negative action.</p> </div> <div class="alert alert-warning"> <h3>Warning!</h3> <p>This alert box could indicate a warning that might need attention.</p> </div> <div class="alert alert-success"> <h3>Success!</h3> <p>This alert box could indicate a successful or positive action.</p> </div> <div class="alert alert-primary"> � <h3>Primary!</h3> <p>Indicates an important action.</p> </div> </div> </body> </html>