【发布时间】:2014-01-22 19:59:01
【问题描述】:
我的以下代码在 Chrome 和 IE 中运行良好,但在 Firefox 中结果是不可接受的,因为它使视频占据了整个窗口。任何想法和想法都会受到赞赏。
$("a.link").click(function() {
var a_href = $(this).attr('href');
//console.log(a_href);
$('#vidholder').prop('src', a_href);
$('#vidholder').prop('height', 300);
$('#vidholder').prop('width', 400);
if ($("#vid-wrapper").is(":hidden")) {
$("#vid-wrapper").slideDown("fast");
} else {
$("#vid-wrapper").hide();
}
event.preventDefault();
});
【问题讨论】:
-
你能否对整个 html 进行 pst 以查看 jquery 如何链接到 JQuery 的部分。
标签: javascript jquery iframe youtube