<div class="sub-title">招租相关信息</div>
.sub-title {
font-size: 16px;
text-align: left;
color: #314790;
font-weight: 700;
position: relative;
padding-left: 10px;
margin-bottom: 20px;
}
.sub-title::before {
content: "";
background-color: #3796ec;
width: 3px;
height: 18px;
position: absolute;
left: 0;
top: 50%;
margin-top: -9px;
border-radius: 3px;
}
下面是 错误做法: 14号字体时能对齐 ,调整了字体大小 就无法对齐