我有一个div,它有一个神秘的5px底部填充添加到其中包含的图像.我已经尝试重新设置所有元素的CSS填充和边距,但没有效果.我缺少什么?
JSFIDDLE:http://jsfiddle.net/vbFx9/
HTML:
<div id="list"> <div id="Boxscroll"> <div class="list-result"> <img src="images/ps-result.png"> </div> <div class="list-result"> <img src="images/ps-result.png"> </div> <div class="list-result"> <img src="images/ps-result.png"> </div> </div> </div>
CSS:
.list-result { padding:0; margin:0; width:100%; border-bottom: 1px #000 solid; background:#f9f9f9; } .list-result:hover { background:#e9e9e9; } #list { top: 100px; bottom:40px; right: 20px; position: absolute; width: 20%; max-width:300px; } #Boxscroll { font-family:'Open Sans'; background:#f9f9f9; overflow: auto; max-height:100%; border: 8px solid #fff; }