<div class="main"> <div class="left">200px</div> <div class="middle">自适应</div> <div class="right">300px</div> </div>
body {
margin: 0;
padding: 0;
}
.main {
width: 900px;
margin: 0 auto;
height: 600px;
position:relative;
}
.left {
width: 200px;
background: rebeccapurple;
height: 600px;
position: absolute;
top: 0;
left: 0;
}
.right {
width: 300px;
background: beige;
height: 600px;
position: absolute;
top: 0;
right: 0;
}
.middle {
height: 600px;
margin: 0 210px 0 310px;
position: relative;
}我想在main里面进行三列布局,请问应该怎么布局呢
qq_小寒
慕瓜9220888
西兰花伟大炮
随时随地看视频慕课网APP