给定以下HTML和CSS,如果容器的宽度小于600px,我希望蓝色框在粉红色框下而不是红色框下移动。如何使第三个盒子在第二个盒子下移动使用CSS
HTML
<div class="row" id="one">
</div><div class="row" id="two">
</div><div class="row" id="three">
</div>
CSS
#one{
height: 200px;
background-color: red;
}
#two{
height: 100px;
background-color: pink;
}
#three{
height: 100px;
background-color: blue;
}
.row{
display: inline-block;
width: 200px;
margin: 0px;
padding: 0px;
}
边注:“
然后,你需要'漂浮'左边的红色框... http://jsfiddle.net/s0hp7Lbh/1/ – CBroe