滴滴滴滴滴
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.fen{
width: 960px;
margin: 0 auto;
background: #CFF;
overflow:visible;
}
.fen1{
width: 740px;
height: 300px;
background: #C9F;
float: left;
}
.fen2{
width: 210px;
height: 300px;
background:#FCF;
float: right;
?}
</style>
</head>
<body>
<div class="fen">
<div class="fen1"></div>
<div class="fen2"></div>
</div>
</body>
</html>
2021-07-29
overflow:visible;這個是啥意思呀,沒太明白
2021-06-17
<style type="text/css">
/*在此定義相應的類選擇器,并根據要求設置相關CSS屬性*/
*{
margin: 0;
padding: 0;
}
.mainBox{
width: 960px;
height: 300px;
background-color: #CFF;
float: left;
}
.leftBox{
width: 740px;
height: 300px;
background-color: #C9F;
float: left;
}
.rightBox{
width: 210px;
height: 300px;
background-color: #FCF;
float: right;
}
</style>
</head>
<body>
<!--在此添加相應的div標簽-->
<div class="mainBox">
<div class="leftBox"></div>
<div class="rightBox"></div>
</div>
</body>