为 border-bottom 自定义 css
Custom css for border-bottom
我已经将 css 应用到 this thing but is there any way where i can do css of this type ?
表示减少边界线的底部?
看看这是否有帮助。
p {
position: relative;
z-index: 1;
width: 30px;
background: red;
padding: 10px;
color: #fff;
}
p:before {
content: "";
position: absolute;
left: 5px;
bottom: 0;
width: 80%;
border-bottom: 4px solid black;
height: 1px;
}
<p>
hello
</p>
我已经将 css 应用到 this thing but is there any way where i can do css of this type ?
表示减少边界线的底部?
看看这是否有帮助。
p {
position: relative;
z-index: 1;
width: 30px;
background: red;
padding: 10px;
color: #fff;
}
p:before {
content: "";
position: absolute;
left: 5px;
bottom: 0;
width: 80%;
border-bottom: 4px solid black;
height: 1px;
}
<p>
hello
</p>