面板框在本地主机上工作,但在 github 上不工作

panel box work on local host but not on github

所以我为我的节目创建了这个项目,出于某种原因,我创建了一个面板框,它在我的本地主机上运行良好,但在我将它托管在 Github 上后就不行了。 这是我的源代码:

        <!-- press -->
<div class="container">

    <section>
        <div class="page-header" id="section-press">
            <h2>Press <small>What the press said about NO SHOW</small></h2>
        </div> <!-- end page-header -->


        <div class="panel-group" id="accordion-qa">

            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title"><a href="#qa-1" data-toggle="collapse" data-parent="#accordion-qa"><h3> The Advocate </h> </a></h4>
                </div>
                <div class="panel-collapse collapse in" id="qa-1">
                    <div class="panel-body">
                        <a href="http://www.theadvocate.com/baton_rouge/entertainment_life/article_9d97eca2-39be-11e7-825b-bb7960e93753.html"><img border="0" alt="The Advocate" src="images/advocate.png" width="900px" height="auto"></a>
                    </div> <!-- end panel-body -->
                </div> <!-- end collapse -->
            </div> <!-- end panel -->

            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title"><a href="#qa-2" data-toggle="collapse" data-parent="#accordion-qa"><h3> 225 Magazine </h></a></h4>
                </div>
                <div class="panel-collapse collapse" id="qa-2">
                    <div class="panel-body">
                        <a href="https://www.225batonrouge.com/things-to-do/nearly-year-series-no-show-comedy-team-keeps-jokes-fresh"><img border="0" alt="225" src="images/225.png" width="900px" height="auto"></a>
                    </div> <!-- end panel-body -->
                </div> <!-- end collapse -->
            </div> <!-- end panel -->

            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title"><a href="#qa-3" data-toggle="collapse" data-parent="#accordion-qa"><h3>The Daily Reveille </h></a></h4>
                </div>
                <div class="panel-collapse collapse" id="qa-3">
                    <div class="panel-body">
                        <a href="http://www.lsunow.com/daily/students-headline-monthly-comedy-show/article_7d064d18-796f-11e6-89d8-27174a75f464.html"><img border="0" alt="The Reveille" src="images/lsu.png" width="900px" height="auto"></a>
                    </div> <!-- end panel-body -->
                </div> <!-- end collapse -->
            </div> <!-- end panel -->
        </div> <!-- end panel-group -->
    </section>

</div>

<!-- end press -->

面板框是这样的:

看起来不错,link 可以用,但是所有的按钮都没有反应;这很奇怪,因为我的电脑上一切正常。这也发生在我的带有我们节目画廊的滑块上。

这里是直接link页面:

https://namburger.github.io/NOSHOWComedy/index.html#qa-2

很抱歉,我对 Web 开发还很陌生,因此非常感谢任何帮助或与此无关的额外提示!

我检查了控制台并在 FF 中收到此错误:

Blocked loading mixed active content “http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js

您提到它在本地主机上运行良好。根据 this 你可以进一步阅读

Note: Since Firefox 55, the loading of mixed content is allowed on localhost (see bug 903966).

我检查了你的 headers,你在 http 中缺少 s

<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>

只需将其更改为:

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>