如何设置Fancybox iFrame v 2.1的高度?

Chi*_*hel 3 .net javascript fancybox

这是我的代码

<script type="text/javascript">
    $(document).ready(function () {

        $("#popup").fancybox({
            'width': 500,
            'height': '500',
            'transitionIn': 'elastic',
            'transitionOut': 'elastic',
            'type': 'iframe'
        });
    });
</script>
Run Code Online (Sandbox Code Playgroud)

设置了iframe的宽度,但未设置高度.请让我知道我哪里错了?

谢谢.

Chi*_*hel 8

这样做我解决了......

$(document).ready(function () {
        $("#popup").fancybox({
            fitToView: false,
            autoSize: false,
            autoDimensions: false,
            width: 520,
            height: 310,
            title: 'Login',
            helpers: {
                title: {
                    type: 'float'
                },
            },
            'transitionIn': 'elastic',
            'transitionOut': 'elastic'
        });
    });
Run Code Online (Sandbox Code Playgroud)

不管怎么说,还是要谢谢你...