CSS:视觉上分开的严格标记

问题描述

| 我有这样的HTML标记:
<div class=\"top\"> </div>
<div class=\"bottom\"> </div>

<div class=\"top\"> </div>
<div class=\"bottom\"> </div>

<div class=\"top\"> </div>
<div class=\"bottom\"> </div>

...
如何通过CSS将所有
top
DIV移到
bottom
DIV的顶部,像这样:
 top | top | top
 ----------------
 bottom
 ----------------
 bottom
 ----------------
 bottom
? 两种类型的DIV都应具有可变的高度。 the1ѭDIV的宽度也应可变。     

解决方法

        没有绝对的定位就没有办法。另外,如果我可能会说,没有理由让您采用这种方式。必须有更好,更直观的方法。     

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...