2012-10-12 39 views

回答

3

将模态设置为true禁用收盘时点击outsite模态的div

$('.fancybox').fancybox({ 
      modal : true 
     }); 
+0

看起来像它的工作,但我删除了X按钮 –

+0

很好听, – loQ

+0

可能会出现X按钮? –

1
closeBtn  
    If set to true, close button will be displayed  
    Boolean; Default value: true 

read the documentation

+1

他的意思外部点击不只是用来掩饰的关闭按钮。再次阅读文档 – loQ

+0

http://screencast.com/t/Vx2AQQBZ8u3x –