在CSS中创建圆环形状 [英] Create doughnut shape in CSS
本文介绍了在CSS中创建圆环形状的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道如何创建一个css圆边界半径等,但我有兴趣创建一个css只是甜甜圈形状大致像这里 - >
I know how to create a css circle with border radius etc, but i'm interested in creating a css only doughnut shape roughly like this one here ->
这将是一个div但弯曲回自己,
It would be one div but curved round back onto itself,
任何想法
推荐答案
<div class="doughnut"></div>
.doughnut {
border: 50px solid #f00;
border-radius: 100px;
height:100px;
width:100px;
}
这篇关于在CSS中创建圆环形状的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文