谁能帮我理解如何定位以下布局?这似乎很简单。
我有这个代码:
<!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>Untitled Document</title>
<style type="text/css">
#container
{
width:730px;
margin:0 auto;
}
#big_img
{
width:270px;
height:270px;
float:left;
}
ul
{
list-style-type:none;
float:left;
padding:0;
}
ul li
{
display:inline;
float:left;
margin-right:9px;
margin-top:0;
margin-bottom:9px;
}
li a img
{
width:130px;
height:130px;
border:1px solid #dcd9d9;
}
</style>
</head>
<body>
<div id="container">
<div id="big_img"><img src="images/new-cat.jpg"/></div>
<ul>
<li><img src="images/ballpools.jpg"/></li>
<li><img src="images/ballpools.jpg"/></li>
<li><img src="images/ballpools.jpg"/></li>
<li><img src="images/ballpools.jpg"/></li>
<li><img src="images/ballpools.jpg"/></li>
<li><img src="images/ballpools.jpg"/></li>
<li><img src="images/ballpools.jpg"/></li>
<li><img src="images/ballpools.jpg"/></li>
<li><img src="images/ballpools.jpg"/></li>
<li><img src="images/ballpools.jpg"/></li>
<li><img src="images/ballpools.jpg"/></li>
<li><img src="images/ballpools.jpg"/></li>
</ul>
</div>
</body>
</html>
结果,列表项显示在 IMG 下。但我需要它们,如图所示。
提前致谢,