我正在尝试使用 CSS 和浮动 div 来整理此布局。有标准尺寸的盒子一个大盒子和一个高盒子。这是jsfiddle
我有这个标记 -
<head>
<style type="text/css">
.boxesHolder
{ width:970px;
border:1px solid green;
margin-left:auto;
margin-right:auto;
background-color:#06C;}
.boxes
{ border:1px solid blue;
margin:5px;
background-color:#FFF;}
.stand {width:230px; height:180px;}
.large {width:474px; height:372px;}
.tall { width:230px height:372px;}
.fLeft{float:left;}
.fRight{float:right;}
.clear {clear:both;}
</style>
</head>
<body>
<div class = "boxesHolder">
<div class = "boxes stand fLeft">1</div>
<div class = "boxes stand fRight">3</div>
<div class = "boxes large fRight">2</div>
<div class = "boxes stand fLeft">4</div>
<div class = "boxes stand fLeft">5</div>
<div class = "boxes stand fLeft">6</div>
<div class = "boxes stand fLeft">7</div>
<div class ="clear"></div>
</div>
</body>
我无法发布布局图像,因为我还没有声望点...
我只想在右下角的空间中添加高框。我就是搞不定。我应该用绝对定位的盒子来做吗?什么是最好的方法。使用表格布局会很容易!