| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8"> |
| <title>Title</title> |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> |
| |
| <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> |
| </head> |
| <body> |
| <button class="btn btn-primary" data-toggle="modal" data-target="#myModal">Trigger Modal in iFrame</button> |
| |
| |
| <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"> |
| <iframe src="http://player.youku.com/embed/XODY3NDMzNjY4" width="100%" height="380" frameborder="0" |
| allowtransparency="true"></iframe> |
| </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> |
| </div> |
| </div> |
| </body> |
| </html> |