需要给body添加一下代码
// 正在等待
.loadding {
// 遮罩层
&::before {
content: "";
position: fixed;
z-index: 100;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #fff;
opacity: .9;
} // 用来显示图标
&::after {
// 才是控制图标的外观
content: "\f110";
position: fixed;
z-index: 101;
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: 100px;
top: 30%;
left: 50%;
margin-left: -50px;
color: #0094ff;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
animation: fa-spin 2s infinite linear;
}
}