删除图像下方的空白 [英] Remove white space below image
本文介绍了删除图像下方的空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 Firefox 中,只有我的视频缩略图在图像底部与其边框之间显示神秘的 2-3 像素空白区域(见下文).
In Firefox only my video thumbnails are displaying mysterious 2-3 pixels of white space between the bottom of my image and its border (see below).
我在 Firebug 中尝试了我能想到的所有方法,但都没有成功.
I've tried everything I can think of in Firebug with no luck.
如何去除这个空白?
推荐答案
您会看到下行空间(挂在 'y' 和 'p' 底部的位),因为 img
默认是内联元素.这消除了差距:
You're seeing the space for descenders (the bits that hang off the bottom of 'y' and 'p') because img
is an inline element by default. This removes the gap:
.youtube-thumb img { display: block; }
这篇关于删除图像下方的空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文