我正在将fancybox 与jquery 一起用于iframe。我设置modal为true但关闭按钮消失了。我阅读了文档并使用约定“当true,' overlayShow'设置为' true'并且' hideOnOverlayClick',' hideOnContentClick',' enableEscapeButton',' showCloseButton'设置为' false'”但关闭按钮消失。
2073 次
4 回答
1
请在这里阅读我的文章。 http://anvlpopescu.wordpress.com/2013/12/10/jquery-fancybox-modal-iframe-with-close-button/
有一个解决方法。
于 2013-12-10T18:36:31.733 回答
1
当 "modal": true 然后你可以在显示事件后附加关闭按钮,如
afterShow : function() { $('.fancybox-skin').append(''); }
希望这会有所帮助
于 2015-08-31T10:42:20.953 回答
0
您可能需要再次阅读文档(可能更慢)并了解 whenmodal设置为true(如您上面所写),然后showCloseButton(自动)设置为false.
"showCloseButton": false( "modal": true) 表示关闭按钮不显示,这是预期的行为。
于 2012-09-12T17:55:33.193 回答
0
将命名的关闭图像图标fancybox_sprite.png放在 css 目录中。
于 2016-09-08T10:59:06.217 回答