index.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. body {
  2. background: #333;
  3. }
  4. #title {
  5. position: absolute;
  6. top: 0;
  7. left: 0;
  8. width: 100%;
  9. height: 10%;
  10. /* background: #555; */
  11. color: white;
  12. font-size: 35px;
  13. /* 弹性盒子布局 */
  14. display: flex;
  15. /* 水平剧中*/
  16. justify-content: center;
  17. /* 垂直居中*/
  18. align-items: center;
  19. }
  20. #left1 {
  21. background: #555;
  22. width: 30%;
  23. height: 45%;
  24. position: absolute;
  25. top: 10%;
  26. left: 0;
  27. }
  28. #left2 {
  29. background: #666;
  30. width: 30%;
  31. height: 45%;
  32. position: absolute;
  33. top: 55%;
  34. left: 0;
  35. }
  36. #center1 {
  37. position: absolute;
  38. top: 10%;
  39. left: 30%;
  40. width: 40%;
  41. height: 25%;
  42. /* background: #777; */
  43. display: flex;
  44. flex-wrap: wrap;
  45. /*文本超出后换行*/
  46. }
  47. .item {
  48. width: 33%;
  49. }
  50. .number {
  51. height: 60%;
  52. display: flex;
  53. justify-content: center;
  54. align-items: center;
  55. color: gold;
  56. font-size: 30px;
  57. font-weight: bold;
  58. }
  59. .text {
  60. height: 40%;
  61. display: flex;
  62. justify-content: center;
  63. align-items: center;
  64. color: white;
  65. font-size: 18px;
  66. font-weight: bold;
  67. }
  68. #center2 {
  69. position: absolute;
  70. top: 35%;
  71. left: 30%;
  72. width: 40%;
  73. height: 65%;
  74. background: #888;
  75. }
  76. #right1 {
  77. position: absolute;
  78. top: 10%;
  79. right: 0;
  80. width: 30%;
  81. height: 45%;
  82. background: #999;
  83. }
  84. #right2 {
  85. position: absolute;
  86. top: 55%;
  87. right: 0;
  88. width: 30%;
  89. height: 45%;
  90. background: #333;
  91. }