1. .gui {
  2. display: flex;
    
  3. flex-wrap: wrap;
    
  4. justify-content: center;
    
  5. align-items: center;
    
  6. }
  7. .gui .circle {
  8. width: 50px;
    
  9. height: 50px;
  10. background-color: #000000;
  11. border-radius: 50%;
  12. margin: 10px; 14.}
  13. .gui .circle:nth-child(1) {
  14. background-color: #FF0000; 18.}
  15. .gui .circle:nth-child(2) {
  16. background-color: #FF7F00; 22.}
  17. .gui .circle:nth-child(3) {
  18. background-color: #FFFF00; 26.}
  19. .gui .circle:nth-child(4) {
  20. background-color: #00FF00; 30.}
  21. .gui .circle:nth-child(5) {
  22. background-color: #00FFFF; 34.}
  23. .gui .circle:nth-child(6) {
  24. background-color: #0000FF; 38.}
  25. .gui .circle:nth-child(7) {
  26. background-color: #8B00FF; 42.}
  27. .gui .circle:nth-child(8) {
  28. background-color: #FF00FF; 46.}
  29. .gui .circle:nth-child(9) {
  30. background-color: #FF1493; 50.}
  31. .gui .circle:nth-child(10) {
  32. background-color: #00FF7F; 54.}
  33. .gui .circle:nth-child(11) {
  34. background-color: #FFD700; 58.}
  35. .gui .circle:nth-child(12) {
  36. background-color: #808080; 62.}
  37. .gui .circle:nth-child(13) {
  38. background-color: #C0C0C0; 66.}
  39. .gui .circle:nth-child(14) {
  40. background-color: #FFFFFF; 70.}
  41. .gui .circle:nth-child(15) {
  42. background-color: #800000; 74.}
  43. .gui .circle:nth-child(16) {
  44. background-color: #8B4513; 78.}
  45. .gui .circle:nth-child(17) {
  46. background-color: #008000; 82.}
  47. .gui .circle:nth-child(18) {
  48. background-color: #808000; 86.}
  49. .gui .circle:nth-child(19) {
  50. background-color: #000080; 90.}
  51. .gui .circle:nth-child(20) {
  52. background-color: #800080; 94.}
  53. .gui .circle:nth-child(21) {
  54. background-color: #FFC0CB; 98.}
  55. .gui .circle:nth-child(22) {
  56. background-color: #808000; 102.}
  57. .gui .circle:nth-child(23) {
  58. background-color: #008080; 106.}
  59. .gui .circle:nth-child(24) {
  60. background-color: #FF69B4; 110.}
  61. .gui .circle:nth-child(25) {
  62. background-color: #CD5C5C; 114.}
  63. .gui .circle:nth-child(26) {
  64. background-color: #4B0082; 118.}
  65. .gui .circle:nth-child(27) {
  66. background-color: #FFE4C4; 122.}
  67. .gui .circle:nth-child(28) {
  68. background-color: #DC143C; 126.}
  69. .gui .circle:nth-child(29) {
  70. background-color: #00CED1; 130.}
  71. .gui .circle:nth-child(30) {
  72. background-color: #FFA07A; 134.}
  73. .gui .circle:nth-child(31) {
  74. background-color: #00FA9A; 138.}
  75. .gui .circle:nth-child(32) {
  76. background-color: #FFA500; 142.}
  77. .gui .circle:nth-child(33) {
  78. background-color: #DA70D6; 146.}
  79. .gui .circle:nth-child(34) {
  80. background-color: #EEE8AA; 150.}
  81. .gui .circle:nth-child(35) {
  82. background-color: #ADD8E6; 154.}
  83. .gui .circle:nth-child(36) {
  84. background-color: #F08080; 158.}
  85. .gui .circle:nth-child(37) {
  86. background-color: #FFB6C1; 162.}
  87. .gui .circle:nth-child(38) {
  88. background-color: #87CEFA; 166.}
  89. .gui .circle:nth-child(39) {
  90. background-color: #FA8072; 170.}
  91. .gui .circle:nth-child(40) {
  92. background-color: #20B2AA; 174.}
  93. .gui .circle:nth-child(41) {
  94. background-color: #FFC0CB; 178.}
  95. .gui .circle:nth-child(42) {
  96. background-color: #ADFF2F; 182.}
  97. .gui .circle:nth-child(43) {
  98. background-color: #FFDAB9; 186.}
  99. .gui .circle:nth-child(44) {
  100. background-color: #40E0D0; 190.}
  101. .gui .circle:nth-child(45) {
  102. background-color: #6B8E23; 194.}
  103. .gui .circle:nth-child(46) {
  104. background-color: #B0C4DE; 198.}
  105. .gui .circle:nth-child(47) {
  106. background-color: #BC8F8F; 202.}
  107. .gui .circle:nth-child(48) {
  108. background-color: #3CB371; 206.}
  109. .gui .circle:nth-child(49) {
  110. background-color: #FF6347; 210.}
  111. .gui .circle:nth-child(50) {
  112. background-color: #F5DEB3; 214.}
CSS 圆形样式代码生成器:50 个彩色圆形

原文地址: https://www.cveoy.top/t/topic/mC1X 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录