mirror of https://github.com/layui/layer
1.9.0
parent
6862e29e13
commit
c3289c9da0
|
@ -12,7 +12,7 @@ html #layui_layer_skinlayercss{display:none; position: absolute; width:1989px;}
|
|||
/* common */
|
||||
.layui-layer-shade, .layui-layer{position:fixed; _position:absolute;}
|
||||
.layui-layer-shade{top:0; left:0; width:100%; height:100%; _height:expression(document.body.offsetHeight+"px");}
|
||||
.layui-layer{top:150px; left:50%; background-color:#fff; -webkit-background-clip: content; box-shadow: 1px 1px 50px rgba(0,0,0,.3);}
|
||||
.layui-layer{top:150px; left:50%; margin:0; padding:0; background-color:#fff; -webkit-background-clip: content; box-shadow: 1px 1px 50px rgba(0,0,0,.3);}
|
||||
.layui-layer-close{position:absolute;}
|
||||
.layui-layer-content{position:relative;}
|
||||
.layui-layer-border{border:1px solid #B2B2B2; border:1px solid rgba(0,0,0,.3); box-shadow: 1px 1px 5px rgba(0,0,0,.2);}
|
||||
|
|
|
@ -439,7 +439,7 @@ Class.pt.move = function(){
|
|||
$('body').append('<div id="layui-layer-moves" class="layui-layer-moves" style="left:'+ xx +'px; top:'+ yy +'px; width:'+ ww +'px; height:'+ hh +'px; z-index:2147483584"></div>');
|
||||
}
|
||||
conf.move = $('#layui-layer-moves');
|
||||
config.moveType && conf.move.css({opacity: 0});
|
||||
config.moveType && conf.move.css({visibility: 'hidden'});
|
||||
|
||||
conf.moveX = M.pageX - conf.move.position().left;
|
||||
conf.moveY = M.pageY - conf.move.position().top;
|
||||
|
|
|
@ -12,7 +12,7 @@ html #layui_layer_skinlayercss{display:none; position: absolute; width:1989px;}
|
|||
/* common */
|
||||
.layui-layer-shade, .layui-layer{position:fixed; _position:absolute;}
|
||||
.layui-layer-shade{top:0; left:0; width:100%; height:100%; _height:expression(document.body.offsetHeight+"px");}
|
||||
.layui-layer{top:150px; left:50%; background-color:#fff; -webkit-background-clip: content; box-shadow: 1px 1px 50px rgba(0,0,0,.3);}
|
||||
.layui-layer{top:150px; left:50%; margin:0; padding:0; background-color:#fff; -webkit-background-clip: content; box-shadow: 1px 1px 50px rgba(0,0,0,.3);}
|
||||
.layui-layer-close{position:absolute;}
|
||||
.layui-layer-content{position:relative;}
|
||||
.layui-layer-border{border:1px solid #B2B2B2; border:1px solid rgba(0,0,0,.3); box-shadow: 1px 1px 5px rgba(0,0,0,.2);}
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
<head>
|
||||
<title>layer-更懂你的web弹窗解决方案</title>
|
||||
<script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
|
||||
<script src="../layer.js?v=1.9.0"></script>
|
||||
|
||||
<script src="../src/layer.js?v=1.9.0"></script>
|
||||
|
||||
<style>
|
||||
html{background-color:#E3E3E3; font-size:14px; color:#000; font-family:'微软雅黑'}
|
||||
|
@ -75,14 +74,16 @@ layer.ready(function(){
|
|||
type: 2,
|
||||
//skin: 'layui-layer-lan',
|
||||
title: 'layer弹层组件',
|
||||
area: ['90%', '90%'],
|
||||
fix: false,
|
||||
shadeClose: true,
|
||||
area: ['1100px', '600px'],
|
||||
content: 'http://sentsin.com/jquery/layer/?form=local',
|
||||
end: function(){
|
||||
layer.tips('试试相册模块?', '#photosDemo', {tips: 1})
|
||||
}
|
||||
});
|
||||
|
||||
layer.msg('欢迎使用layer');
|
||||
//layer.msg('欢迎使用layer');
|
||||
|
||||
//使用相册
|
||||
layer.photos({
|
||||
|
|
Loading…
Reference in New Issue