【发布时间】:2021-08-14 18:30:24
【问题描述】:
我想实现如图所示的按钮,但我不确定如何自信地做到这一点。
我试过的代码如下所示:
background-color: hsl(0, 0%, 48%);
border-radius: 30px;
text-align: center;
text-decoration: none;
margin: 4px 2px;
cursor: pointer;
}
<button class="bookmark">
<svg width="56" height="56" xmlns="http://www.w3.org/2000/svg">
<g fill="none" fill-rule="evenodd">
<circle fill="#2F2F2F" cx="28" cy="28" r="28" />
<path fill="#B1B1B1" d="M23 19v18l5-5.058L33 37V19z" />
</g></svg
>Bookmark
</button>
【问题讨论】: