Hello!这里是万物之恋,今天来教大家用css+js来简单绘制一个抽奖轮盘(不可转动)
HTML部分
<div class="box">
<h1>幸运大转盘</h1>
<div class="giant-box">
<div class="prize">
<span class="prize-text">一等奖</span>
</div>
<div class="prize">
<span class="prize-text">二等奖</span>
</div>
<div class="prize">
<span class="prize-text">三等奖</span>
</div>
<div class="prize">
<span class