当我最小化窗口时,div 容器重叠。有没有办法避免这种情况?我尝试将最小宽度最小化到合理的数量,但问题仍然存在
上下文图像:
html5:
<body>
<header class="header">
<img src="images/logo.png">
<div class="coloredBG"></div>
<div class="coloredBG"></div>
<div class="coloredBG"></div>
<div class="coloredBG"></div>
</header>
</body>
CSS
.header {
max-width:1200px;
min-width:200px;
margin: 0 auto;
margin-top:30px;
}
.coloredBG {
background: #406d85;
height:100px;
width:170px;
float:right;
margin-left:3px;
-webkit-transition: background 1s;
-o-transition: background 1s;
-moz-transition: background 1s;
}