【发布时间】:2019-09-25 00:51:21
【问题描述】:
我正在使用 Jeckyll 来呈现一个 GitHub 风格的降价表(至少我认为这是一个准确的描述)。我正在使用这个Jeckyll theme
如何在表格中缩放图像?我尝试了两件事:
| I say | You say | Example image |
|-------------------|-------------------|-------------------|
| Hello | Goodbye| {:width="50"}|
| Hello | Goodbye| {% include image.html file="pathToImg/img.png" alt="img" max-width="200" %}|
| Hello | Goodbye| {% include image.html file="pathToImg/img.png" alt="img" max-width="200" %}|
第一行中的版本 ({:width="50"}) 不起作用。 (请参见下面屏幕截图中的第一行)。
第 2 行和第 3 行 ({% include image.html file="pathToImage/image.png" alt="alt text" max-width="200" %}) 上的版本确实有效,但我在呈现的表格中多了一行。
这个额外的行没有出现在 GitHub 预览中,所以我认为这是一个 Jeckyll 问题。
【问题讨论】: