[英]Jquery Popup gets hidden behind editlive editor
在我的应用程序中,我使用了EditLive编辑器。 当我尝试在显示edtor的同一页面上打开一个弹出窗口时,它会隐藏在其后面。 谁能帮助我,如何让我的ejQuery对话框弹出。
谢谢
尝试给jQuery对话框一个较高的z-index。
代码示例
//Initialize a dialog with the zIndex option specified.
$( ".selector" ).dialog({ zIndex: 3999 });
//Get or set the zIndex option, after init.
//getter
var zIndex = $( ".selector" ).dialog( "option", "zIndex" );
//setter
$( ".selector" ).dialog( "option", "zIndex", 3999 );
您要处理的问题与浏览器和小程序的共存方式有关。 通常,小程序会忽略z-index并始终显示在最前面-这不是EditLive问题,而是小程序的问题。
特定于EditLive的API可以解决此问题,称为setBackgroundMode
EditLive 8: http : //docs.ephox.com/display/public/EditLive/setBackgroundMode+Method
EditLive 6/7: http : //docs.ephox.com/display/EditLive7/setBackgroundMode+Function
请注意,在执行其他操作(例如显示AJAX灯箱)之前,您应该等待回调触发
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.