当前位置: 代码迷 >> ASP.NET >> 初学者关于布局,DIV总是下不去。
  详细解决方案

初学者关于布局,DIV总是下不去。

热度:3046   发布时间:2013-02-25 00:00:00.0
菜鸟求助:关于布局,DIV总是上不去。。
如下图所示,我创建了 5个 DIV,从左到右 依次左浮动,当地五个重起一行 是,不管我用 clear:both;还是其他方法,

第5个DIV,总是在 第3个 DIV下边,怎么都上不去,我想让 5 紧贴着 1 的下方,该怎么弄才行呢,,,

我能想到的办法都想了,还是行不通 0.0



------解决方案--------------------------------------------------------

交给美工就行了,要问的话就给css 样式表贴出来看图哪知道?
------解决方案--------------------------------------------------------
代码贴出来瞅瞅
------解决方案--------------------------------------------------------
把第三个浮动改为right
------解决方案--------------------------------------------------------
border:red 1px solid; width:100px; height:100px; float:left
------解决方案--------------------------------------------------------
<table width="743" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="263"><img src="1.png" width="263" height="220" /></td>
<td width="386"><img src="2.png" width="386" height="219" /></td>
<td width="72" rowspan="2"><img src="3.png" width="7" height="480" /></td>
</tr>
<tr>
<td valign="top"><img src="5.png" width="236" height="113" /></td>
<td>&nbsp;</td>
</tr>
</table>


1.png、2.png、3.png、5.png代表你标的那几个图片
  相关解决方案