2014-01-16 131 views
0

我正在Angular JS和Bootstrap中构建一个应用程序。为什么没有被解雇的警报不被解雇?

http://numerology.andrewgolightly.com/

输入一些细节,看看结果。结果页面有一个可以忽略的警报,当点击十字架时不会被解雇。

我基本上复制从http://getbootstrap.com/components/#alerts-dismissable代码

<div class="alert alert-info alert-dismissable"> 
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> 
    <span class="glyphicon glyphicon-info-sign"></span> This number represents who you are at birth and the native traits that you will carry with you through life. The most important number that will be discussed here is your Life Path number. The Life Path describes the nature of this journey through life. 
</div> 

谁知道为什么它没有被我的网站上被解雇?

回答

2

您只包含Bootstrap css,但对于可忽略的功能(以及Bootstrap中的许多其他功能),您还需要包含js文件。

+0

的权利..我缺少明显的。谢谢。 – magician11

1

您必须添加的jquery.js和bootstrap.js

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.1/js/bootstrap.min.js"></script> 

在你的脑袋节