项目中用的是frameset三框架页面用到fancybox,一个弹框插件,但是很无奈,弹框的大小会受到frame大小的限制,如下图:请问如何让fancybox跳出框架大小的限制,显示略小于整个页面的大小?下图是fancybox的参数配置:
1 回答
![?](http://img1.sycdn.imooc.com/545868c20001b8c402200220-100-100.jpg)
倚天杖
TA贡献1828条经验 获得超3个赞
这种问题看下文档就解决啦。
width Default width for 'iframe' and 'swf' content. Also for 'inline', 'ajax' and 'html' if 'autoSize' is set to 'false'. Can be numeric or 'auto'.
Number, String; Default value: 800
height Default height for 'iframe' and 'swf' content. Also for 'inline', 'ajax' and 'html' if 'autoSize' is set to 'false'. Can be numeric or 'auto'
Number, String; Default value: 600
文档
意思就是如果在iframe
内的话,可以将autosize
设置为false
,然后通过width
和height
设定大小。
添加回答
举报
0/150
提交
取消