我正在尝试在Modal Pop中播放视频,它在Chrome中运行良好,但在Firefox中运行不正常.
以下是代码:Click Me
==========
模态大便代码:
==========
==========
JS代码:
==========
$(document).on("click", '#clickForVideo', function() { var src = '//www.youtube.com/embed/itTskyFLSS8?feature=player_embedded&autoplay=1'; $('#video').modal('show'); $('#video iframe').attr('src', src); $(".modal-video").fitVids(); });
==========
在您拥有该模式的页面中添加此css代码块将对此问题进行排序.
.modal.fade .modal-dialog{transform:none !important;}