项目中用的是frameset三框架页面
用到fancybox,一个弹框插件,但是很无奈,弹框的大小会受到frame大小的限制,如下图:
请问如何让fancybox跳出框架大小的限制,显示略小于整个页面的大小?
下图是fancybox的参数配置:
回复内容: 项目中用的是frameset三框架页面
用到fancybox,一个弹框插件,但是很无奈,弹框的大小会受到frame大小的限制,如下图:
请问如何让fancybox跳出框架大小的限制,显示略小于整个页面的大小?
下图是fancybox的参数配置:
这种问题看下文档就解决啦。
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设定大小。