【问题标题】:Getting rid of vertical spaces between images in table摆脱表格中图像之间的垂直空间
【发布时间】:2015-02-05 17:41:18
【问题描述】:

我有一个带有分割图像的页面(来自Gimp 的过滤器),但我看到图像之间的水平线。如何删除这些垂直空间?请看http://quaaoutlodge.com/content/christmas-green-fee-special

【问题讨论】:

    标签: css image margin padding


    【解决方案1】:

    为所有td 设置line-height: 0; 它将解决问题

    图像充当inline-block 元素,它创建white-space 以修复inline-block 之间的vertical 空白,您需要将line-height 设置为0

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-06
      • 2015-01-08
      • 1970-01-01
      • 2021-10-25
      • 2012-11-04
      • 2011-01-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多