我正在使用Fancybox创建覆盖iframe的一切工作,但我似乎无法改变宽度/高度的值。我使用的fancybox-1.2.6和jquery1.2.6调整Fancybox iframe覆盖宽度和高度的问题
$(document).ready(function() {
$("a.iframe").fancybox({
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
});
和
<a class="iframe" id="iframe" title="Sample title" href="http://google.com/">iframe</a>
谢谢。我会在哪里把它放在我的代码中? – Michael 2011-05-18 17:12:13
增加了另一种方式来做到这一点 – Mertis 2011-05-18 17:26:20
也我看到你有$(“a.iframe”)。fancybox({ 为什么在那里“a”你不需要它只是去$(“。iframe”) – Mertis 2011-05-18 17:28:56