Hide the close “X” button in Fancybox

前端 未结 6 736
独厮守ぢ
独厮守ぢ 2021-02-07 06:20

I am using this http://fancybox.net/

Is there a way to add a property to not show the close \"X\" button on top right? I mean I can use \'callbackOnShow\' to hide it in

6条回答
  •  猫巷女王i
    2021-02-07 06:59

    use boolean in 'showCloseButton' attribute. e.g

    $('.editGnBtn').fancybox({
       'href': "#editGn",
       'showCloseButton':false
     });
    

提交回复
热议问题