盒子模型-练习 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>盒子模型-练习</title> <style type="text/css"> *{ padding: 0px; margin: 0px; } img { border:1px solid #BADBDB; margin:10px 15px; } .content { border: 4px solid #BADBDB; width: 740px; background:url("./picture/t_book.gif") no-repeat; background-color: #EFF9F9; padding: 44px 15px 15px; } </style> </head> <body> <div class="content"> <img src=".\picture\book1.jpg" width="80px" height="80px"> <img src=".\picture\book2.jpg" width="80px" height="80px"> <img src=".\picture\book3.jpg" width="80px" height="80px"> <img src=".\picture\book4.jpg" width="80px" height="80px"> <img src=".\picture\book5.jpg" width="80px" height="80px"> <img src=".\picture\book6.jpg" width="80px" height="80px"> </div> </body> </html>
这是我用Webstorm打出来的,但是在右边总是有那么一小点突出,怎么将那两条线合并?还有为什么要将宽度.content的宽度从770减到740并且将图片.img的左右margin从18减到15才能勉强达成目标?视频在http://www.imooc.com/video/1331,而且视频中老师最后将770直接减到700才达成目标,这是为什么
菜鸟一一只
blovetu