twitter bootstrap警报无法正常工作

时间:2013-01-17 19:19:01

标签: twitter-bootstrap

我是bootstrap的新手。我想在加载时显示一个警告框。它没有。这是jsfiddle。怎么了?谢谢!

http://jsfiddle.net/4XZMb/1207/

<div class="container">
    <div class="hero-unit">
        <h1>Bootstrap jsFiddle Skeleton</h1>
        <p>Fork this fiddle to test your Bootstrap stuff.</p>
        <p>
            <a class="btn btn-primary btn-large" href="http://twitter.github.com/bootstrap/index.html" target="_blank">
                Learn more about Bootstrap
            </a>
        </p>
    </div>
<div id="CanUseIPhoneAppPrompt" title="Please use the iPhone App." class="alert fade">    
      please try our iphone app                                      
</div>

和代码:

$(function() {
    $("#CanUseIPhoneAppPrompt").alert();
});

1 个答案:

答案 0 :(得分:1)

在这里工作,只需删除fade

上的课程div#CanUseIPhoneAppPrompt