慕移动9358087
2021-06-02 22:20
<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>
overflow:visible;这个是啥意思呀,没太明白
<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>
企业网站综合布局实战
157043 学习 · 1984 问题