编辑下面的代码:【加编码】
<html lang="en"> <head> <meta charset="utf-8"> <title>Basic alerts with bootstrap</title> <meta name="description" content="Creating basic alerts with Bootstrap. Examples of alerts and errors 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="container"> <div class="row"> <div class="span4"> <div class="alert"> <a class="close" data-dismiss="alert">×</a> <strong>Warning!</strong> Best check yo self, you're not looking too good. </div> </div> </div> </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 - © 自强学堂