一、说明
这是记录开发过程中常用的样式记录的帖子,后续会不断更新,也欢迎大家优化,添加
二、内容
1、标题前面带竖线的样式
示例:
.title {
color: #1677ff;
font-weight: 700;
font-size: 16px;
display: flex;
align-items: center;
margin: 10px;
}
.title::before {
content: "";
display: block;
height: 16px;
width: 2px;
margin-right: 5px;
background: #1677ff;
}
2、标题底部带横线---20240820 更新
.checked {
height: 100%;
position: relative;
}
.checked::after {
content: '';
position: absolute;
left: 40%;
bottom: -3px;
width: 50%;
height: 0.03rem;
background-color: #5897FF;
transform: translateX(-50%);
border-radius: 5px;
}