编辑下面的代码:【加编码】
<html lang="en"> <head> <meta charset="utf-8"> <title>Example alerts on error success and information with bootstrap</title> <meta name="description" content="Example alerts on error success and information with bootstrap."> <link href="/try/bootstrap/twitter-bootstrap-v2/docs/assets/css/bootstrap.css" rel="stylesheet"> <style type="text/css"> body { padding: 50px; } </style> </head> <body> <div class="alert alert-error"> <a class="close" data-dismiss="alert">×</a> <strong>Error!</strong>This is a fatal error. </div> <div class="alert alert-success"> <a class="close" data-dismiss="alert">×</a> <strong>Success!</strong>You have successfully done it. </div> <div class="alert alert-info"> <a class="close" data-dismiss="alert">×</a> <strong>Info!</strong>Watch this, but you may forget. </div> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/jquery.js"></script> <script src="/try/bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-alert.js"></script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂