问题
When I click the close button of my FancyBox nothing happens. It will only close when I click outside the frame. How can I get the close button to work?
回答1:
Just call $.fn.fancybox.close()
or $.fancybox.close(true)
on your onClick event
来源:https://stackoverflow.com/questions/13071616/close-button-on-fancybox-not-working