Blogger Information
Blog 2
fans 0
comment 0
visits 850
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
css的太极图
P粉175454374
Original
462 people have browsed it

···html
<!doctype html>

<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.zuiwai{
width:800px;
height: 800px;
border:1px solid black;
margin:0 auto;
border-radius:50%;

  1. background:linear-gradient(to right,#000000 0%,#000000 50%,#FFFFFF 51%,#FFFFFF 100%);
  2. animation: zhuan 10s linear infinite;
  3. }
  4. .li1,.li2{
  5. border:1px solid rgba(0,0,0,0);
  6. width: 399px;
  7. height: 399px;
  8. border-radius: 50%;
  9. margin-left:211px;
  10. }
  11. .li1{
  12. transform: rotate(-46deg);
  13. background-color: white;
  14. }
  15. .li2{
  16. transform: rotate(-46deg);
  17. background-color: black;
  18. }
  19. .nei1,.nei2{
  20. width: 199px;
  21. height: 199px;
  22. border-radius: 50%;
  23. border:1px solid black;
  24. margin-left:90px;
  25. margin-top:90px;
  26. }
  27. .nei1{
  28. background-color: #262626;
  29. }
  30. .nei2{
  31. background-color: white;
  32. }
  33. @keyframes zhuan {
  34. 50%{
  35. transform: rotate(180deg);
  36. }
  37. 100%{
  38. transform: rotate(360deg);
  39. }
  40. }
  41. </style>

</head>

<body>

<div class="zuiwai">
<div class="li1">
<div class="nei1"></div>
</div>

  1. <div class="li2">
  2. <div class="nei2"></div>
  3. </div>

</div>
</body>
</html>
···html

Correcting teacher:PHPzPHPz

Correction status:unqualified

Teacher's comments:格式改一下,效果图添加上
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post