我尝试了很多。但不能做perfect
循环背景。如果有人这样做,请向我解释。这是我的html
代码:
这是我的代码:
.customization_text img {
background: #383838;
padding: 30px;
border-radius: 35px;
}

<div class="col-md-4 customization_text text-center">
<img src="images/icon_1.png" alt="icon_1">
<h4>responsive & multipurpose</h4>
<p>Proin in magna a ipsum viverra scelerisq enec turp, Nunc vestibulum fringilla accumsan ornare quis.</p>
<button type="button" class="btn btn-light">Light</button>
</div>
&#13;
答案 0 :(得分:2)
使用此代码段。
.customization_text img {
background: #383838;
padding: 30px;
border-radius: 50%;
display:block;
width:50px;
height:50px;
}
<div class="col-md-4 customization_text text-center">
<img src="images/icon_1.png" alt="icon_1">
<h4>responsive & multipurpose</h4>
<p>Proin in magna a ipsum viverra scelerisq enec turp, Nunc vestibulum fringilla accumsan ornare quis.</p>
<button type="button" class="btn btn-light">Light</button>
</div>
答案 1 :(得分:1)
要制作一个完美的圆圈,请给出div的高度和宽度;然后使border-radius达到50%。
.customization_text img {
background: #383838;
padding: 30px;
border-radius: 35px;
}