//容器设定text-align:justify
.justify{ text-align: justify; } //容器里面的元素 .justify i{ width:24px; line-height:24px; display:inline-block; text-align:center; border-radius:50%; } //伪类这个必须写 .justify:after { content: ""; display: inline-block; position: relative; width: 100%; }