
<div class="boxall">
<div class="box1"></div>
<div class="box2"></div>
</div>
<div class="box3"></div>
</div>
CSS:
.all{width:100%;height:500pxmargin:auto}
.boxall{ width:500pxheight:500pxfloat:left}
.box3{margin-left:500pxheight:500px}
在box3里面再写内容,宽度设为100%,内容就是自适应了,
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)