[css] jquery+css 基本遮罩

基本用jquery+css  基本遮罩 ;

在需要调用的地方增加相应的方法,

缺点是若是频繁调用容易出现遮罩层管理混乱的现象 

// css样式 
.overlay{position: fixed; z-index: 1000;width: 100%;height: 100%;top: 0;left: 0;filter: alpha(opacity=20);opacity: 0.4;overflow: hidden;background-color: #fff;}
.content{background-color:white; position:fixed; top:50%; left:40%; z-index:1001; word-wrap: break-word; padding:3px;}
*html .overlay{ position: absolute; left: expression_r(documentElement.scrollLeft + documentElement.clientWidth - this.offsetWidth); top: expression_r(documentElement.scrollTop + documentElement.clientHeight - this.offsetHeight); }
*html .content{ position: absolute; left: expression_r(documentElement.scrollLeft + documentElement.clientWidth - this.offsetWidth); top: expression_r(documentElement.scrollTop + documentElement.clientHeight - this.offsetHeight); }
.table-load span{background:url(../images/load.gif) no-repeat; padding:5px 0px; padding-left:20px;}
.loading02{ position:fixed; _position:absolute; left:50%; top:50%; height:46px; line-height:46px; background:url(../images/load.gif) no-repeat left center; padding-left:45px; font-size:14px; color:#6b6b6b; width:170px; margin-left:-85px; margin-top:-23px;}

// jquery 实现部分 
//加载中,请等待……
function beginWait(){
	$("body").append("
   
   
加载中,请稍后  ……
"); } //取消等待效果 function endWait(){ $("#beginWaitId").remove(); } //添加基本背景遮罩 function basicShadowStart(){ $("body").append("
"); } //取消基本背景遮罩 function basicShadowEnd(){ $("#basicShadowStartId").remove(); } //添加背景遮罩之上的遮罩 function topShadowStart(){ $("body").append("
"); } //取消背景遮罩之上的遮罩 function topShadowEnd(){ $("#topShadowStartId").remove(); } function removeAllOverLay(){ $(".overlay").each(function(index){ $(this).remove(); }); }

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值