简体   繁体   中英

Fancybox: Unable to fix height and width

Am using Fancybox 1.2.6 and JQuery 1.2.6,

Code:

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

        $("a.iframe").fancybox({
            'width'             : 300,
            'height'            : 200,
            'type'              : 'iframe',
            'autoScale'         : false,
            'transitionIn'      : 'fade',
            'transitionOut'     : 'fade',
            'speedIn'           : 600, 
            'speedOut'          : 200, 
            'showCloseButton'   : false,
            'titleShow'         : false
        });

    });
</script>

<a class="iframe" id="iframe" href="test.html">iframe</a>

Here I am unable to fix the height and width of the window. Below i have attached the image of my output. Is there any way to fix the height and width ??

在此处输入图片说明

Set autoDimensions valut to true or false ;

see http://fancybox.net/api for more details

also there is

$.fancybox.resize();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM