html - 照片集底部和边框之间的空白

标签 html css image whitespace tumblr

我在图片帖子的底部和我的 tumblr 页面的边框之间出现了空白。我在这行 css 中插入了 vertical-align: bottom;

.entries img { 
vertical-align: bottom;    
{block:ifbiggerposts}max-width:500px;{/block:ifbiggerposts}
{block:ifnotbiggerposts}max-width:400px;{/block:ifnotbiggerposts}
{block:iffadingimages}{block:indexpage}opacity:.7;{/block:indexpage}{/block:iffadingimages}
-webkit-transition: all 0.7s ease-in-out;
-moz-transition: all 0.7s ease-in-out;
-o-transition: all 0.7s ease-in-out;
-ms-transition: all 0.7s ease-in-out;
transition: all 0.7s ease-in-out;}

现在空白区域只出现在照片集下。我试过插入

img {
display:block;
}

但这也没有解决问题。

这是我的主题的 pastebin http://pastebin.com/2iE93Hq3

这是我的 tumblr 页面:http://neverwakeasnorlax.tumblr.com/

问题的一个例子是第 3 篇帖子,其中包含 Pokemon Zapdos Moltres 和 Articuno 的 gif 图片

最佳答案

div 容器上的边距会产生间隙:

.photoset .photoset_row {
    margin-top: 10px;
}

关于html - 照片集底部和边框之间的空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21507364/

相关文章:

javascript - 如何让我的模态框在弹出框后面淡出?

javascript - Facebook Like 按钮虽然位于隐藏的 div 中,但仍然可见

css - 使用多个 css 类进行过渡

javascript - 如何限制 1 div 与另一个 div 的距离不超过一定长度?

html - 响应图像(宽度和高度)

html - 我可以对高度和宽度受限的图像使用 <picture> 吗?

安卓图片问题

html - 定位导航栏

javascript - 将可编辑行添加到表中

javascript - ReactJs 组件架构