1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
| *{ margin: 0; padding: 0; } ul{ list-style: none; } .wrap{ position: relative; width: 500px; height: 500px; margin: 30px auto; border-radius: 50%; box-shadow: 0 0 25px 2px black; background-image: linear-gradient(to bottom, #fff 2%, lightgray 15%, lightgray 86%, #fff); }
.number{ width: 460px; height: 460px; background-color: white; border-radius: 50%; box-shadow: 0 0 15px inset; }
.center{ position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; }
.number li{ width: 100%; height: 50px; position: absolute; top: 0; bottom: 0; margin: auto 0; line-height: 50px; font-size: 40px; } .number li span{ margin-left: 15px; display: inline-block; }
#pointer{ width: 30px; height: 30px; border-radius: 50%; background-color: #333; }
#pointer li{ position: absolute; top: 0; bottom: 0; left: 50%; margin: auto 0; border-radius:0 50% 50% 0; transform-origin: left center; } #hour{ width: 120px; height: 10px; background-color: firebrick; } #minute{ width: 160px; height: 6px; background-color: darkgreen; } #second{ width: 210px; height: 4px; background-color: gold; } #kou{ width: 16px; height: 16px; border-radius: 50%; background-color: #fff; }
|