mirror of https://github.com/layui/layer
打开遮罩层后聚焦至shade上
parent
0018e1a54f
commit
ed128c1961
|
@ -229,7 +229,7 @@ Class.pt.vessel = function(conType, callback){
|
|||
config.zIndex = zIndex;
|
||||
callback([
|
||||
//遮罩
|
||||
config.shade ? ('<div class="layui-layer-shade" id="layui-layer-shade'+ times +'" times="'+ times +'" style="'+ ('z-index:'+ (zIndex-1) +'; ') +'"></div>') : '',
|
||||
config.shade ? ('<div class="layui-layer-shade" id="layui-layer-shade'+ times +'" tabindex="-1" times="'+ times +'" style="'+ ('z-index:'+ (zIndex-1) +'; ') +'"></div>') : '',
|
||||
|
||||
//主体
|
||||
'<div class="'+ doms[0] + (' layui-layer-'+ready.type[config.type]) + (((config.type == 0 || config.type == 2) && !config.shade) ? ' layui-layer-border' : '') + ' ' + (config.skin||'') +'" id="'+ doms[0] + times +'" type="'+ ready.type[config.type] +'" times="'+ times +'" showtime="'+ config.time +'" conType="'+ (conType ? 'object' : 'string') +'" style="z-index: '+ zIndex +'; width:'+ config.area[0] + ';height:' + config.area[1] + (config.fixed ? '' : ';position:absolute;') +'">'
|
||||
|
@ -328,7 +328,7 @@ Class.pt.creat = function(){
|
|||
$('#layui-layer-shade'+ that.index).css({
|
||||
'background-color': config.shade[1] || '#000'
|
||||
,'opacity': config.shade[0]||config.shade
|
||||
});
|
||||
}).focus();
|
||||
|
||||
config.type == 2 && layer.ie == 6 && that.layero.find('iframe').attr('src', content[0]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue