【发布时间】:2015-12-29 22:02:04
【问题描述】:
你好,
我创建了一个 bootstrap 3 模态,它可以在我的移动设备上运行,但在我的桌面上,当您单击按钮时它不会打开模态。
我尝试调整模态框的大小,甚至调整它的 zindex,但这些都没有解决问题。
有人知道我遇到了什么问题吗?
<div class="container-fluid formbox ">
<div id="cageModal" class="modal fade" role="dialog" class="col-sm-10 col-sm-offset-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Cage The Great</h4>
</div>
<div class="modal-body">
<iframe width="100%" height="100%" src="https://www.youtube.com/embed/VqghSmwdnpg" frameborder="no" allowfullscreen></iframe>
<button type="button" class="btn btn-default" data-dismiss="modal">See More</button>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid formbox ">
<div class="col-xs-12 col-sm-12">
<h3>Get Familiar with the artists below.</h3>
<div class="col-xs-8 col-xs-offset-2 col-sm-6 col-sm-offset-3">
<div> <button type="button" class="btn btn-block btn-info btn-lg" data-toggle="modal" data-target="#cageModal">Cage The Great</button>
</div>
</div>
</div>
</div>
【问题讨论】:
-
您检查过控制台是否有错误,您可能还想在 bootstrapjs 链接上将 http 更改为 https(另外,bootstrap 包含 normalize css默认情况下仅供参考)
-
我做了,没有任何错误。感谢规范化位。我对我的代码进行了调整。
标签: php twitter-bootstrap modal-dialog desktop bootstrap-modal