選舉印章
<div class="stamp"></div>
---
用 before 跟 after 拼出那個直槓和斜槓
Reference: https://hackmd.io/J0YP6hp2SL-2v1rZsHG70w
<style>
.stamp {
background-color: transparent;
border: 5px solid #ff6666;
width: 50px;
height: 50px;
border-radius: 50%;
position: relative;
}
.stamp:before {
content: '';
background-color: #ff6666;
position: absolute;
height: 100%;
width: 5px;
left: calc(50% - 2.5px);
}
.stamp:after {
content: '';
background-color: #ff6666;
position: absolute;
height: 5px;
width: 52%;
left: 2px;
top: calc(50% + 5px);
transform: rotate(-45deg);
}
</style>
2020-01-11 12:32:05
留言
Last fetch: --:--
現在還沒有留言!