文字两端对齐12345.name { display: inline-block; text-align: justify; text-align-last: justify;} 关闭按钮效果图 html 123<span class="icon"> <i class="el-icon-close"/></span> css 12345678910111213.icon { width: 50px; height: 50px; background: #FF9D47; box-shadow: 0px 2px 10px 0px rgba(201, 181, 169, 0.5); border-radius: 0px 0px 0px 86px; margin-left: auto; color: #fff; font-size: 22px;}.icon i{ margin: 10px 0px 0px 20px; }