【发布时间】:2020-06-13 10:03:29
【问题描述】:
我想在 css 中构建这个按钮:
我们建议我使用 ::after,我成功地完成了这个按钮的一部分。但是只有一行,我不能在同一个组件上使用 manybalises ::after。我该怎么办?
这是我的 CSS:
.special_button{
position: relative;
background-color: white;
height: 60px;
font-size: 32px;
width: 192px;
font-family: dosis_light;
}
.special_button::after{
position: absolute;
content: '';
width: 33px;
height: 2px;
background: black;
margin-top: 48px;
margin-left: 20px;
}
【问题讨论】:
-
寻求代码帮助的问题必须包含重现它所需的最短代码在问题本身中最好在Stack Snippet 中。见How to create a Minimal, Reproducible Example