<!DOCTYPE html><html><head> <title>京东商品展示</title> <meta charset="utf-8"> <style type="text/css"> *{ margin: 0; padding: 0; } .main{ width: 360px; height: 360px; margin: auto auto; border: none; } .main .buttom{ border: none; } .main .buttom ul{ list-style: none; } .main .buttom li{ width: 90px; height: 70px; display: inline-block; } .main .buttom img{ margin-left: 10px; } </style></head><body> <div class="main"> <div class="top"> <img src="images/02big.jpg"> </div> <div class="buttom"> <ul> <li><img src="images/02.jpg"></li> <li><img src="images/03.jpg"></li> <li><img src="images/04.jpg"></li> <li><img src="images/05.jpg"></li> </ul> </div> </div></body></html>
为什么上下之间有空隙。然后父元素是360px;我设置li的宽度为90px为什么不能在同一行显示图片
_蛰伏