0
我要像结构的本CSS伪元素::之前不能正常工作
,但我发现这个
这是我的html代码
<div class='trial'>Available for a 3 months</div>
这是我的css
.trial {
font-size: 15px;
font-weight: 600;
padding: 2px 21px 2px 21px;
color: #33c4b6;
border: 1px solid #e4e4e4;
display: inline-block;
border-radius: 15px;
background-color: white;
/* position: relative; */
/* bottom: -20px; */
margin: 20px 0px 20px 0px;
}
.trial::before {
content: "";
border-bottom: 1px solid rgba(211, 211, 211, 0.54);
width: 45%;
display: inline-block;
vertical-align: middle;
margin-left: 10px;
}
任何帮助将不胜感激。
其工作太:) –
那为什么你失望投票呢? – Shubham