2015-07-23 3 views
3

У меня возникли проблемы с закрытием моего бутстрапа. У меня есть мой jquery, объявленный перед загрузкой, и предупреждения все еще не закрываются. Код для предупреждения приведен ниже. Есть идеи?Сигналы бутстрапа не закрываются

<!-- jquery --> 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> 

    <!-- bootstrap --> 
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> 


    <div class="alert alert-success alert-dismissible" role="alert"> 
    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button> 
    <strong>Yay</strong> Your email has been added! 
    </div> 
+0

Заканчивать этот ответ http://stackoverflow.com/questions/30969850/bootstrap-dropdown-menu-does-not-work/30971313#30971313. –

ответ

6

Вам все еще нужно добавить щель ядра бутстрапа JS.

<!-- jquery --> 
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> 
 

 
<!-- bootstrap --> 
 
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script> 
 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> 
 

 

 
<div class="alert alert-success alert-dismissible" role="alert"> 
 
    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span> 
 
    </button> 
 
    <strong>Yay</strong> Your email has been added! 
 
</div>

Смежные вопросы