84669인 학습
152542인 학습
20005인 학습
5487인 학습
7821인 학습
359900인 학습
3350인 학습
180660인 학습
48569인 학습
18603인 학습
40936인 학습
1549인 학습
1183인 학습
32909인 학습
项目中用的是frameset三框架页面
frameset
用到fancybox,一个弹框插件,但是很无奈,弹框的大小会受到frame大小的限制,如下图:
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: 800height 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设定大小。
iframe
autosize
false
width
height
这种问题看下文档就解决啦。
Number, String; Default value: 600
文档
意思就是如果在
iframe
内的话,可以将autosize
设置为false
,然后通过width
和height
设定大小。