-
Notifications
You must be signed in to change notification settings - Fork 0
/
0730_modal_popup_dialog_for_youtube.html
31 lines (31 loc) · 1.24 KB
/
0730_modal_popup_dialog_for_youtube.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!-- ポップアップの中でiframeを表示する例 -->
<!-- Youtubeは横480じゃないとはみ出てしまう -->
<!DOCTYPE html>
<html lang="ja">
<html>
<head>
<meta charset="UTF-8" />
<link href="assets/bootstrap.css" media="screen" rel="stylesheet" type="text/css" />
<script src="assets/jquery.js" type="text/javascript"></script>
<script src="assets/coffee-script.js" type="text/javascript"></script>
<script src="assets/bootstrap.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
<a class="btn" data-toggle="modal" href="#main">Youtube</a>
<div class="modal hide fade" id="main">
<div class="modal-header">
<a data-dismiss="modal" class="close">×</a>
<h3>栗原舞のヨーヨー 静岡大道芸ワールドカップ2010</h3>
</div>
<div class="modal-body">
<iframe width="480" height="390" src="http://www.youtube.com/embed/TecVgDJO4cM" frameborder="0" allowfullscreen></iframe>
</div>
<div class="modal-footer">
<a href="#" class="btn btn-primary">もっと見る</a>
<a href="#" class="btn" data-dismiss="modal">閉じる</a>
</div>
</div>
</div>
</body>
</html>