所以我为我的Show创建了这个项目,由于某种原因,我创建了一个在我的本地主机上工作正常但不在我在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 -->
这是面板框的样子:
它看起来很棒,链接正常,但是所有按钮都没有响应;这很奇怪,因为我的电脑上的一切正常。这也发生在我的滑块与我们的展览画廊。
以下是该页面的直接链接:
https://namburger.github.io/NOSHOWComedy/index.html#qa-2
很抱歉,我对网络开发很陌生,所以任何帮助甚至是与此无关的其他提示都将非常感谢!
答案 0 :(得分:0)
我检查了控制台并在FF中出现了这个错误:
阻止加载混合活动内容 “http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js”
你提到它在localhost中运行得很好。根据{{3}}您可以进一步阅读
注意:自Firefox 55以来,允许加载混合内容 localhost(参见错误903966)。
我检查了您的标题,但您在s
中遗漏了http
:
<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>