我无法将 div 与 FLOAT:LEFT; 对齐。标签。我忽略的代码有问题吗?
徽标应该在最左边,两个 div 条彼此重叠。
提前致谢。
<header id="head-01">
<div class="logo"></div>
<div class="nav-head-01"></div>
<div class="nav-head-02"></div>
</header>
header#head-01 {
clear: both;
float: left;
width: auto;
height: auto;
display: block;
}
header#head-01 div.logo {
clear: both;
float: left;
width: 60px;
height: 60px;
margin-right: 2.5px;
display: block;
background-color: rgba(238, 28, 36, 0.4);
}
header#head-01 div.nav-head-01 {
clear: both;
float: left;
width: 880px;
height: 30px;
margin-left: 2.5px;
display: block;
background-color: rgba(57, 59, 60, 0.3);
}
header#head-01 div.nav-head-02 {
clear: both;
float: left;
width: 880px;
height: 30px;
margin-left: 2.5px;
display: block;
background-color: rgba(142, 145, 148, 0.3);
}