jquery blockUI 居中显示
var__widowWidth=$(window).width();
var__popWidth=$("#Loading").width();//Loading为要显示的div
var__left=(__widowWidth-__popWidth)/2+'px';
var__windowHeight=$(window).height();
var__popHeight=$("#Loading").height();
var__top=(__windowHeight-__popHeight)/2+'px';
$.blockUI({message:$('#Loading'),
css:{
cursor:'',
left:__left,width:__popWidth+'px',top:__top,position:'fixed',//居中
border:'none',//无边界
width:"100px"//中间框框的宽度
},
overlayCSS:{cursor:''}
});
相关推荐
zrtlin 2020-11-09
xuebingnan 2020-11-05
wikiwater 2020-10-27
heheeheh 2020-10-19
Crazyshark 2020-09-15
softwear 2020-08-21
ZGCdemo 2020-08-16
jczwilliam 2020-08-16
littleFatty 2020-08-16
idning 2020-08-03
jinxiutong 2020-07-26
lanzhusiyu 2020-07-19
Skyline 2020-07-04
xiaofanguan 2020-06-25
Aveiox 2020-06-23
dragonzht 2020-06-17