css源码: ul{ width: -moz-fit-content; width: -webkit-fit-content; width: fit-content; margin: auto; } li{float:left}