【发布时间】:2019-03-11 20:03:51
【问题描述】:
如何使用 CSS 在中心绘制循环箭头和文本,就像下图一样?
我尝试创建一个曲线箭头,但我不知道如何让它看起来像我想要的那样。
.arrow {
width: 200px;
height: 200px;
border: 6px solid;
border-radius: 50%;
position: relative;
}
.arrow:before {
content: "";
display: block;
width: 10px;
height: 50px;
background: #fff;
position: absolute;
bottom: 0;
top: 0;
right: -6px;
margin: auto;
}
.arrow:after {
content: "";
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-top: 20px solid #000;
position: absolute;
bottom: 106px;
right: -20px;
}
<div class="arrow"></div>
【问题讨论】:
标签: css css-shapes