html5自定义遮罩-成都快上网建站

html5自定义遮罩

ys_loading.css

10年积累的成都做网站、成都网站建设经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先网站制作后付款的网站建设流程,更有修文免费网站建设让你可以放心的选择与我们合作。

.ys-loading{
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    right:0;
    z-index: 9999;
}

.ys-loading em{
    position:absolute;
    left:0;
    right:0;
    top:0;
    bottom:0;
    width:44px;
    height:44px;
    margin:auto;
    border-radius: 22px;
    opacity: 0.3;
    overflow: hidden;
}

.ys-loading em:before{
    content:"";
    display:block;
    width:46px;
    height:46px;
    background:url(../../p_w_picpaths/common/ajax-loader.gif) no-repeat center center;
    background-size:contain;
    margin-top:-1px;
    margin-left:-1px;
}

ys_loading.js

(function($){

    var container = null;

    var html =  "
";     function render(){         container = $(html).appendTo("body");     }     var initialized = false;     function init(){         if(initialized){             return;         }         initialized = true;         render();     }     var LoadingWidget = {         showLoading:function(){             init();             container.show();         },         hideLoading:function(){             container.hide();         }     };     window.LoadingWidget = LoadingWidget; })(jQuery);

html5 自定义遮罩


网页题目:html5自定义遮罩
转载来于:http://kswjz.com/article/gcsiie.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流