CSS制作横向菜单,如何让li元素在ul中居中?
<head> <style> .test{text-align:center;} .test ul{border:1px solid red;} .test li{display:inline;border:1px solid blue;margin:0px 10px} </style> </head> <body> <div class="test"> <ul> <li>aaa</li> <li>bbb</li> <li>ccc</li> </ul> </div> </body>