效果: HTML代码: <div class="demo"><span>姓名</span>:小王</div> CSS代码: .demo span { display: inline-block; width: 60px; text-align: justify; text-align-last: justify; }