文字前面加竖线表示标题
作者:互联网
<span class="title">日志总览</span>
.title { position: relative; padding-left: 13px; margin: 24px 0px; } .title:before { content: ''; background-color: #3796EC; width: 4px; height: 16px; position: absolute; left: 0; top: 50%; margin-top: -8px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; }
标签:文字,3px,title,top,标题,radius,position,border,竖线 来源: https://www.cnblogs.com/utomboy/p/16143003.html