html css ul li 横排居中
.ft-list ul { display: flex; /*flex-direction: row;*/ /*flex-wrap: nowrap;*/ flex-flow: row nowrap; justify-content: center; } .ft-list ul li { list-style: none; /* border: 2px solid #161EE8FF; */ text-align: center; line-height: 30px; padding: 10px; /* height: 30px; width: 100px; */ /* margin: 0 10px; */ }