我正在使用Google Chrome.
使用 Twitter Bootstrap,我想添加一个简单的警报,不幸的是,alert不是在x被按下时被解雇!
使用 Twitter Bootstrap,我想添加一个简单的警报,不幸的是,alert不是在x被按下时被解雇!
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> </head> <body> <div class="alert"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>Warning!</strong> Best check yo self,you're not looking too good. </div> </body> </html>
我也试过:
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> </head> <body> <div class="alert"> <a href="#" class="close" data-dismiss="alert">×</a> <strong>Warning!</strong> Best check yo self,you're not looking too good. </div> </body> </html>
缺少什么是让它解雇?