点击http://vaiman.org/左侧边栏中的图片,我们太小 YouTube框。我需要让YouTube领域更大。怎么样?
这是我的JavaScript代码(http://vaiman.org/wp-content/themes/vaiman/javascript/youtube.js):
jQuery(document).ready(function() { jQuery(".various").fancybox({ maxWidth : 1000/*850*/, maxHeight : 1000/*638*/, minWidth : 1000/*850*/, minHeight : 1000/*638*/, fitToView : false, width : 1000/*'100%'*/ /*70%*/, height : 1000/*'100%'*/ /*70%*/, autoSize : false, closeClick : false, openEffect : 'none', closeEffect : 'none' }); });
我的错误是什么?
答案 0 :(得分:2)
以下代码可以在jsfiddle here
中查看示例<div id="single_1"><a href="http://www.youtube.com/embed/A3Atj57r15U?autoplay=1" class="various fancybox.iframe">
<img src="http://vaiman.org/wp-content/themes/vaiman/images/photo1.jpg" width="191" height="91" alt=""></a></div>
$(document).ready(function() {
$(".various").fancybox({
maxWidth: 800,
maxHeight: 600,
fitToView: false,
width: '70%',
height: '70%',
autoSize: false,
closeClick: false,
openEffect: 'none',
closeEffect: 'none'
});
});