当前位置:   article > 正文

CSS 飞舞线条加载中效果

CSS 飞舞线条加载中效果

  1. <template>
  2. <view class="page">
  3. <view class="container">
  4. <view class="ring"></view>
  5. <view class="ring"></view>
  6. <view class="ring"></view>
  7. <view class="ring"></view>
  8. <view class="h3">加载中...</view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. </script>
  14. <style>
  15. body {
  16. background-color: #212121;
  17. /* 设置背景颜色为深灰色 */
  18. }
  19. .page {
  20. display: flex;
  21. /* 使用弹性布局 */
  22. justify-content: center;
  23. /* 水平居中对齐 */
  24. align-items: center;
  25. /* 垂直居中对齐 */
  26. margin-top: 300px;
  27. /* 顶部外边距为300像素 */
  28. }
  29. .container {
  30. display: flex;
  31. /* 使用弹性布局 */
  32. justify-content: center;
  33. /* 水平居中对齐 */
  34. align-items: center;
  35. /* 垂直居中对齐 */
  36. position: relative;
  37. /*
本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/article/detail/41369
推荐阅读
相关标签
  

闽ICP备14008679号