我试图在CSS中创建四个不同的彩色圆圈。与CSS不同的彩色圆圈
我已经定义了填充大小,颜色,高度和背景。
这对我来说都是非常新的。你能帮助我如何获得4个不同的彩色圆圈(戒指)具有相同的背景颜色?
.numberCircle {
border-radius: 50%;
behavior: url(PIE.htc);
/* remove if you don't care about IE8 */
width: 36px;
height: 36px;
padding: 8px;
background: #fff;
border: 2px solid #666;
color: #666;
text-align: center;
font: 32px Arial, sans-serif;
}
<div class="numberCircle">30</div>
<div class="numberCircle">1</div>
<div class="numberCircle">2</div>
请仔细阅读[问],并添加对你的问题[mcve]。 – j08691
在此处添加您的代码HTML和CSS。有很多方法可以做到这一点。没有人提出这个呢:) http://jsfiddle.net/dQR9T/6331/也有阴影可以使用 –