- 0
- 0
- 约3.92千字
- 约 6页
- 2018-10-26 发布于天津
- 举报
今天开始做box2这一大块:
大眼一看,直接分成3小块,这里命名为box21 box22 box23.
div class=box2
div class=box21/div
div class=box22/div
div class=box23/div
/div
我们通过下载这个背景图片得知,这个图片的宽度是248像素,但是这个图片是在一个浅绿色的边框里边,目测就是宽度1像素,因此box21的宽度是++=250像素宽。
包括box23的宽度也是250像素。
box22的宽度通过下载图片加上两边边框宽度是460像素。
.box21{ width:250px; height:490px; float:left; background-color:#CCCCCC;}
.box22{ width:460px; height:490px; float:left; background-color:#CCCCCC; margin-left:10px;}
.box23{ width:250px; height:490px; float:left; background-color:#CCCCCC; margin-left:10px;}
然后这里box2的墨绿色背景就可以去掉了:
.box2{ width:980px; height:490px; margin-top:5px;float:le
原创力文档

文档评论(0)