Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我单击 FancyBox 的关闭按钮时,什么也没有发生。只有当我在框架外单击时它才会关闭。我怎样才能让关闭按钮工作?
只需致电$.fn.fancybox.close()或$.fancybox.close(true)在您的 onClick 事件上
$.fn.fancybox.close()
$.fancybox.close(true)