main.css 1.3 KB

1234567891011121314151617181920
  1. *{margin:0;padding: 0;}
  2. body{background: black;}
  3. li{list-style-type: none;}
  4. .wrap{width:960px;height:330px; margin:100px auto;}
  5. .wrap .clock{height: 220px;}
  6. .wrap .clock ul li{width: 120px;height: 220px;float: left;margin:0 10px;}
  7. .wrap .clock ul li ul{position: relative;}
  8. .wrap .clock ul li ul li{width:90px;height: 20px;display: block;}
  9. .wrap .clock ul li ul li:nth-child(1){position:absolute;left: 15px;}
  10. .wrap .clock ul li ul li:nth-child(2){position:absolute;transform:rotateZ(90deg);top:0px;left:-35px;top:50px;}
  11. .wrap .clock ul li ul li:nth-child(3){position:absolute;transform:rotateZ(90deg);top:0px;left:65px;top:50px;}
  12. .wrap .clock ul li ul li:nth-child(4){position:absolute;top: 100px;left: 15px;}
  13. .wrap .clock ul li ul li:nth-child(5){position:absolute;transform:rotateZ(90deg);top:150px;left:-35px;}
  14. .wrap .clock ul li ul li:nth-child(6){position:absolute;transform:rotateZ(90deg);left:65px;top: 150px;}
  15. .wrap .clock ul li ul li:nth-child(7){position:absolute;top: 200px;left: 15px;}
  16. .wrap .clock ul .point{width: 30px;}
  17. .wrap .clock ul .point span{display:block;height: 20px;width: 20px;background: #f10404;margin:60px 15px;}
  18. .wrap .date span:first-child{float: left;margin-left: 10px;}
  19. .wrap .date span:last-child{float: right;margin-right:30px;}