例如,从一个正方形中取一个红色或绿色,然后用这种颜色在圆形上涂色?
.red{
width: 10px;
height: 10px;
background-color: red;
}
.green{
width: 10px;
height: 10px;
background-color: green;
}
.circle{
width: 30px;
height: 30px;
border: solid;
border-radius: 20px;
}
<div class="red" ></div>
<br>
<div class="green"></div>
<br>
<div class="circle"></div>
1 个回答