css加载中,请稍后....demo示例(整理)

简介: css加载中,请稍后....demo示例(整理)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>加载中,请稍后....</title>
<style type="text/css">
.load{
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.1);
}
.loader{
  width: 140px;
  height: 140px;
  text-align: center;
  position: absolute;
  top: calc(50% - 70px);
  left: calc(50% - 70px);
  padding-top: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}
#loader-run{
  width: 60px;
  height: 60px;
  background: #f1e5e5;
}
.load-msg{
  height: 50px;
  line-height: 50px;
  color: #fff;
  font-size: 13px;
}
/*转动圈颜色*/
svg path, svg rect {
  fill: #62d652a1;
}
</style>
</head>
<body>
  <div class="load">
    <div class="loader">
      <svg id="loader-run" viewBox="0 0 50 50">
        <path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">
          <animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite" />
        </path>
      </svg>
      <div class="load-msg"> 加载中,请稍后....</div>
    </div>
  </div>
</body>
</html>

相关文章
|
1月前
|
前端开发 内存技术
CSS动画示例(上一篇是CSS过渡…)
CSS动画示例(上一篇是CSS过渡…)
23 1
|
7月前
|
前端开发
css改input变输入框光标颜色demo效果示例(整理)
css改input变输入框光标颜色demo效果示例(整理)
|
1月前
|
前端开发
CSS3中的动画示例
CSS3中的动画示例
12 1
|
1月前
|
存储 缓存 前端开发
link 与 @import:CSS 样式表的加载策略(下)
link 与 @import:CSS 样式表的加载策略(下)
|
1月前
|
存储 前端开发 JavaScript
link 与 @import:CSS 样式表的加载策略(上)
link 与 @import:CSS 样式表的加载策略(上)
|
3月前
|
存储 缓存 前端开发
【面试题】浅谈css加载是否会造成阻塞
【面试题】浅谈css加载是否会造成阻塞
|
4月前
|
前端开发
css sprite 的优缺点,使用方法和示例
css sprite 的优缺点,使用方法和示例
32 1
|
5月前
|
前端开发 CDN
钉钉卡片点击按钮,跳转连接,css无法加载
钉钉卡片点击按钮,跳转连接,css无法加载
36 1
|
7月前
|
前端开发
SAP Commerce Cloud Accelerator theme css 加载的问题和 multi step checkout
SAP Commerce Cloud Accelerator theme css 加载的问题和 multi step checkout
27 0
|
7月前
|
前端开发
css设置数组最后2个没有下边框效果(demo)整理
css设置数组最后2个没有下边框效果(demo)整理