当前位置:   article > 正文

简单的css3d柱状图_css 3d柱状图

css 3d柱状图
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>3d柱状图</title>
  8. </head>
  9. <style>
  10. .cube-warper {
  11. position: relative;
  12. width: 30px;
  13. height: 400px;
  14. transform-style: preserve-3d;
  15. transform: rotateX(-30deg) rotateY(45deg);
  16. }
  17. .cube-box {
  18. width: 30px;
  19. height: 400px;
  20. position: absolute;
  21. left: 20px;
  22. bottom: 0;
  23. transition: .5s all;
  24. }
  25. .cube-box1 {
  26. left: 20px;
  27. }
  28. .cube-box2 {
  29. left: 150px;
  30. bottom: -45px;
  31. }
  32. .cube-box3 {
  33. left: 280px;
  34. bottom: -90px;
  35. }
  36. .cube {
  37. position: absolute
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/96757
推荐阅读