ID:62164852
大小:103.50 KB
页数:4页
时间:2021-04-20
5、e〉 6.〈style〉 7..divcss5{ margin:0 auto; width:400px; height:120px; border:1px solid #00F} 8.。divcss5-l{ float:left; width:120px; height:120px; border-right:1px solid #00F} 9.。divcss5-c{ float:left; width:158px;height:120px; background:#CCC}/* 这里宽度是400-120-120-2 */ 10..divc
6、ss5—r{ float:right; width:120px;height:120px; border—left:1px solid #00F} 11. 13.〈body〉 14.〈div class="divcss5"〉 15.
7、中间css布局截图个人收集整理勿做商业用途三列中中间div使用浮动实现居中布局效果截图这里注意三个盒子宽度计算,在我们培训中也特别说明了盒子宽度计算方法技巧,这里中间div盒子“.divcss5—c”divcss5实例中使用了float:left实现需要布局样式,使用浮动样式让div盒子居中。3、在线演示:查看案例4、html源代码+css实例的完整打包下载:
此文档下载收益归作者所有