Internet explorer 引导手风琴手不使用IE

Internet explorer 引导手风琴手不使用IE,internet-explorer,twitter-bootstrap,Internet Explorer,Twitter Bootstrap,我一直在使用bootstrap开发一个网站,我使用了accordion(Collapse)JavaScript特性 它适用于除IE以外的所有浏览器 上面的URL,如果使用FF或Chrome访问,您可以看到accordion工作正常。当使用IE时,有什么想法吗?尽管我在HTML标题中包含了以下内容 <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <scri

我一直在使用bootstrap开发一个网站,我使用了accordion(Collapse)JavaScript特性

它适用于除IE以外的所有浏览器

上面的URL,如果使用FF或Chrome访问,您可以看到accordion工作正常。当使用IE时,有什么想法吗?尽管我在HTML标题中包含了以下内容

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

下面是我的HTML代码

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" >
<head>
    <meta charset="utf-8">


    <!-- CSS Styling starts here -->
    <link rel="stylesheet" type="text/css" href="/public_assets/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="/public_assets/bootstrap/css/bootstrap-responsive.min.css" />
    <link rel="stylesheet" type="text/css" href="/public_assets/base.css" />
    <!-- CSS Styling ends here -->

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->


    <!-- JS Starts here -->
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
    <script type="text/javascript" src="/public_assets/bootstrap/js/bootstrap.min.js"></script>

    <script type="text/javascript" src="/en/js/common_js.js"></script>
    <script type="text/javascript" src="/public_assets/js/jquery.cookie.js"></script>

    <!-- JS ends here -->


</head>
<body>
..............

        <script>
            $(".collapse").collapse();
        </script>

        <div class="collapse in">
            <div id="accordion-group" class="accordion">





                    <div class="accordion-group">
                        <div class="accordion-heading">
                            <a href="#collapse-2" data-parent="#accordion-group" data-toggle="collapse" class="accordion-toggle">
                                Checking Story (published on Sept. 30, 2012, 1:43 p.m.)

                            </a>
                        </div>
                        <div class="accordion-body collapse" id="collapse-2" style="height: 0px;">
                            <div class="accordion-inner">
                                <p><img src="/public_media/success_story/2012/09/30/happyFamily.jpg" class="img-rounded" style="float: left; margin-right: 5px;" /> Checking Story...</p>

                            </div>
                        </div>
                    </div>








                    <div class="accordion-group">
                        <div class="accordion-heading">
                            <a href="#collapse-1" data-parent="#accordion-group" data-toggle="collapse" class="accordion-toggle">
                                The story of our lives (published on Sept. 30, 2012, 10:20 a.m.)

                            </a>
                        </div>
                        <div class="accordion-body collapse" id="collapse-1" style="height: 0px;">
                            <div class="accordion-inner">
                                <p><img src="/public_media/success_story/2012/09/30/promo_bts.jpg" class="img-rounded" style="float: left; margin-right: 5px;" /> The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives The story of our lives.</p>

                            </div>
                        </div>
                    </div>





            </div>
        </div>




        </div>
    </div>



</div>
</body>
</html>

..............
$(“.collapse”).collapse();
正在检查故事

我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活故事我们的生活


这是一个问题,已在2.1.1中解决-您应该更新引导文件。

您应该尝试将问题本地化并将代码粘贴到此处。我不太确定如何粘贴代码。我应该只粘贴HTML吗?无论如何,我现在会粘贴HTML,如果您需要更多详细信息,请告诉我好的,我只是在问题中添加了HTML代码:)。。我希望“本地化”会有所帮助。我的意思是选择与问题相关的代码,而不是整个网站。哦,我明白了,我会删除与问题无关的部分