<!DOCTYPE html><html>?<head>??<meta charset="UTF-8">??<title></title>??<style>???*{????margin:0 auto;????padding: 0;???}???body{???????width:1000px;????text-align: center;???}???ul{????overflow:auto;????display: block;???????}???ul li{????float:left????list-style: none;???????}??</style>?</head>?<body>??<button></button>??<button></button>??<button></button>??<ul>???<li>新聞</li>???<li>娛樂</li>???<li>體育</li>???<li>電影</li>???<li>音樂</li>???<li>旅游</li>?????</ul>?</body></html>當(dāng)把li設(shè)為float后ul不能居中
ul在float下不能用text-align居中
qq_命運(yùn)之骰_0
2018-08-01 23:19:37