标签:div menu idt col oct 清除 pre otto css
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title</title>
<meta charset="UTF-8">
<style>
.div1{
width: 100px;
height: 100px;
background-color: #fac237;
/*float: left;*/
}
.div2{
width: 100px;
height: 100px;
background-color: #b18621;
/*float: right;*/
float: left;
}
.div3{
width: 200px;
height: 200px;
background-color: #77bafc;
}
.outer{
background-color: #5fb57d;
}
.menu1{
width: 100px;
height: 100px;
background-color: #fac237;
float: left;
}
.menu2{
width: 100px;
height: 100px;
background-color: #b18621;
float: left;
}
.bottom{
/*width: 200px;*/
/*height: 150px;*/
background-color: #959da4;
text-align: center;
/*clear: left;*/
}
/*!*清除浮动*! clear*/
.clear{
clear: both;
}
</style>
</head>
<body>
<!-- <div class="div1">11</div>-->
<!-- <div class="div2">22</div>-->
<!-- <div class="div3">33</div>-->
<div class="outer">
<div class="menu1">菜单一</div>
<div class="menu2">菜单二</div>
<div class="clear"></div>
</div>
<div class="bottom">底部</div>
</body>
</html>
标签:div menu idt col oct 清除 pre otto css
原文地址:https://www.cnblogs.com/zxy01/p/13208632.html