效果如上图:
<div class='font'>查询条件</div>
.font{ text-align: left; font-size: 20px; display: flex; align-items: center; } .font:before{ content: ' '; border-left: 10px solid orangered; display: inline-block; height: 20px; margin-right: 5px; }
效果如上图:
<div class='font'>查询条件</div>
.font{ text-align: left; font-size: 20px; display: flex; align-items: center; } .font:before{ content: ' '; border-left: 10px solid orangered; display: inline-block; height: 20px; margin-right: 5px; }