所以我有一个 2 列布局,其结构如下:
html结构:
#container
#content
#side-a
.janitor
CSS:
#container{ width: 501px; }
#content {
float: left;
width: 300px;
border-right: 1px solid black;
}
#side-a{
float: right;
width: 200px;
}
.janitor {clear: both; }
当没有边框时一切都很好,但是当我添加它时,布局会在缩小时崩溃。