#content里面的图片都没有完全的向左移动,明明li都加了float:left;了,为什么左边还空一大块,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
body{font-size:12px; color:#333;}
body,ul,li{padding:0; margin:0; list-style:none;}
#head{width:730px;
height:150px;
margin:0 auto;}
h1{float:left;}
.head_r{float:right;}
#content{
width:800px;
height:300px;
margin:0 auto;
background:#6CF}
li
{float:left;
margin-right:10px;}
p{text-align:center;}
</style>
</head>
<div id="head">
<h1>
<img src="z.jpg" width="200px"/>
</h1>
<div class="head_r">
<img src="q.jpg" width="200px"/>
</div>
</div>
<ul id="content">
<li>
<img src="3.jpg" width="150" />
<p>cluo1</p>
</li>
<li>
<img src="3.jpg" width="150" />
<p>cluo2</p>
</li>
<li>
<img src="3.jpg" width="150" />
<p>cluo3</p>
</li>
<li>
<img src="3.jpg" width="150" />
<p>cluo4</p>
</li>
<li>
<img src="3.jpg" width="130" />
<p>cluo5</p>
</li>
</ul>
<body>
</body>
</html>