html - CSS - 如何删除锚定图像之间的空白

标签 html css anchor image

我有两个锚定图像,它们彼此重叠,用换行符分隔。我希望图像直接位于彼此之上,但在 Firefox 中图像之间存在间隙。它适用于 IE7。我能够解决此问题的唯一方法是更改​​行高(我不想这样做)。

<a href="image.jpg">
    <img height="75" width="75" src="image.jpg" />
</a>
<br/>
<a href="image2.jpg">
    <img height="75" width="75" src="image2.jpg" />
</a>

最佳答案

将 CSS 属性 vertical-align to bottom 放置在顶部图像上将消除 Firefox 中的间隙。

关于html - CSS - 如何删除锚定图像之间的空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1111783/

相关文章:

html - 有没有办法将范围输入的默认值设置为空?

c# - Selenium - 陈旧元素引用 : element is not attached to the page

javascript - jquery ui 将可拖动元素限制在较小的容器内

css - HTML5 & CSS : Formatting anchors, &lt;header&gt;-宽

anchor - WCAG 2.0 指南 mailto 链接文本

css - 在鼠标悬停时隐藏 anchor 链接标题标签

html - 使用 WATIR 检索 <TD> 文本

javascript - Kendo UI Splitview 刷新 Pane 内容

html - 为什么使用同一个数字z-index,后面的元素会重叠?

javascript - 未在 html 网页 jsfiddle 上打开的选项卡