2021年5月4日星期二

Arrange numbers in circle like a clock

I am aiming to make a clock using javascript and first step is to make a clock look right. How do i get the numbers 1 to 12 in a circle? I have created a circle with class "clock"

.clock{      background-color: red;      width: 500px;      height: 500px;      border-radius: 50%;   }        <head>      <link href="clock.css" rel="stylesheet">    </head>    <body>        <div class="clock">            <div class="b1">1</div>            <div class="b2">2</div>            <div class="b3">3</div>            <div class="b4">4</div>            <div class="b5">5</div>            <div class="b6">6</div>            <div class="b7">7</div>            <div class="b8">8</div>            <div class="b9">9</div>            <div class="b10">10</div>            <div class="b11">11</div>            <div class="b12">12</div>        </div>      </body>      
https://stackoverflow.com/questions/67394285/arrange-numbers-in-circle-like-a-clock May 05, 2021 at 10:07AM

没有评论:

发表评论