Hide the close “X” button in Fancybox

前端 未结 6 723
独厮守ぢ
独厮守ぢ 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条回答
  •  遥遥无期
    2021-02-07 07:03

    Looks like showCloseButton doesn't work any more. After looking into the fancybox code i figured out closeBtn should be set to false.

    So in order to hide close button one should add below line in options -

    'closeBtn' : false

提交回复
热议问题