ASCII码 ASCII码

太极图作业

发布于:2022-05-11 15:00:16  栏目:技术文档
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport"
  6. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <title>Document</title>
  9. <style>
  10. .zuiwai{
  11. width:800px;
  12. height: 800px;
  13. border:1px solid black;
  14. margin:0 auto;
  15. border-radius:50%;
  16. background:linear-gradient(to right,#000000 0%,#000000 50%,#FFFFFF 51%,#FFFFFF 100%);
  17. animation: zhuan 10s linear infinite;
  18. }
  19. .li1,.li2{
  20. border:1px solid rgba(0,0,0,0);
  21. width: 399px;
  22. height: 399px;
  23. border-radius: 50%;
  24. margin-left:211px;
  25. }
  26. .li1{
  27. transform: rotate(-46deg);
  28. background-color: white;
  29. }
  30. .li2{
  31. transform: rotate(-46deg);
  32. background-color: black;
  33. }
  34. .nei1,.nei2{
  35. width: 199px;
  36. height: 199px;
  37. border-radius: 50%;
  38. border:1px solid black;
  39. margin-left:90px;
  40. margin-top:90px;
  41. }
  42. .nei1{
  43. background-color: #262626;
  44. }
  45. .nei2{
  46. background-color: white;
  47. }
  48. @keyframes zhuan {
  49. 50%{
  50. transform: rotate(180deg) scale(0.5,0.5) ;
  51. }
  52. 100%{
  53. transform: rotate(360deg) scale(1,1) ;
  54. }
  55. }
  56. </style>
  57. </head>
  58. <body>
  59. <div class="zuiwai">
  60. <div class="li1">
  61. <div class="nei1"></div>
  62. </div>
  63. <div class="li2">
  64. <div class="nei2"></div>
  65. </div>
  66. </div>
  67. </body>
  68. </html>
相关推荐
阅读 +