感谢我的前端大神指导
插件下载地址
链接:https://pan.baidu.com/s/1wwGLrlJld4Oa2gXvHIQJ4Q
提取码:tbub
样式展示
由于css中的内容冲突引入导致很多问题在前端的指导下将css全部提出,引入loading.js即可直接使用
<%--loading插件的css--%>
<style>
.cpt-loading-mask.column {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: transparent;
z-index: 100;
-moz-transform: translateZ(0);
-webkit-transform: translateZ(0);
transform: translateZ(0);
-moz-user-select: -moz-none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
background: rgba(0, 0, 0, 0.2);
z-index: 1000001;
position: fixed;
}
.fadeInNoTransform {
-webkit-animation-name: fadeInNoTransform;
animation-name: fadeInNoTransform;
}
@keyframes fadeInNoTransform {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.cpt-loading-mask.column .div-loading {
position: absolute;
top: 50%;
left: 50%;
background: rgba(0, 0, 0, 0.6);
-moz-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
transform