加这个
- helpers: {
overlay: {
closeClick: false
}
就是加这个,如
- jQuery.fancybox({ helpers: { overlay: { closeClick: false
- }
- },
- 'padding': 0,
- 'margin': 0,
- 'width': 400,
- 'height': 400,
- 'autoScale': false,
- 'scrolling': 'no',
- 'overlayShow': true,
- 'type': 'iframe',
- 'href': $(this).attr('href'),
- 'afterClose': function() { //refresh grid
- reload("lstAppServer", "/Actions/GetAppServers.ashx?filter=" + escape($("#<%=txtFilter.ClientID %>").val()));
- }
- });
本方法在 fancybox 2.1.3 中通过
来源: http://www.phperz.com/article/17/0711/281515.html