Twitter bootstrap 引导模式不呈现iframe
我不太清楚是什么导致了这里的故障。但是我直接从Bootstrap网站上的模态示例中提取。尝试嵌入Spotify iFrame失败。有关于如何获取要渲染的内容的指针吗?我们期望的结果是能够播放spotify播放列表Twitter bootstrap 引导模式不呈现iframe,twitter-bootstrap,modal-dialog,spotify,Twitter Bootstrap,Modal Dialog,Spotify,我不太清楚是什么导致了这里的故障。但是我直接从Bootstrap网站上的模态示例中提取。尝试嵌入Spotify iFrame失败。有关于如何获取要渲染的内容的指针吗?我们期望的结果是能够播放spotify播放列表 <!-- Modal --> <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<iframe src="https://embed.spotify.com/?uri=spotify:user:1270558680:playlist:6nfXkdY7eZwINySrDHIFiV" width="300" height="380" frameborder="0" allowtransparency="true"></iframe> </div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
×
模态头
关
保存更改
看起来您缺少了“模态对话框”div、“模态内容”div和一些结束div
我直接从bootstrap网站复制了模态示例,插入了iframe,它成功了()。以下是bootstrap网站上的示例模式:
<!-- Button trigger modal -->
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
启动演示模式
&时代;
情态标题
...
关
保存更改
加载页面时,iFrame没有显示在正确的位置,这就是为什么单击“加载”时,modal没有显示iFrame的良好部分
你试过了吗:你可以用!(仅5kb)
简单的方法是:
eModal.iframe("https://embed.spotify.com/?uri=spotify:track:0YtFqZhheQZIrVc0qbqL8D")
一些化妆品:
eModal.iframe({
url: "https://embed.spotify.com/?uri=spotify:track:0YtFqZhheQZIrVc0qbqL8D",
size:eModal.size.sm,
title:"Da weasel"});
该库还支持ajax、alert、promp或confirm
不需要html强>