在 GitHub markdown 中使用表格中的图片

25

我有些问题在github上格式化README。

这是原始的README:

| Italic             |  Block letters |
:-------------------------:|:-------------------------:
![](outputs/output_Biotouch/18-15_02-02-2018/Identification/ITALIC/ITALIC_movementPoints_cmc.png)  |  ![](outputs/output_Biotouch/18-15_02-02-2018/Identification/BLOCK_LETTERS/BLOCK_LETTERS_movementPoints_cmc.png)
![](outputs/output_Biotouch/18-15_02-02-2018/Verification/ITALIC/ITALIC_movementPoints_notbalanced_roc.png)  |  ![](outputs/output_Biotouch/18-15_02-02-2018/Verification/BLOCK_LETTERS/BLOCK_LETTERS_movementPoints_notbalanced_roc.png)
![](outputs/output_Biotouch/18-15_02-02-2018/Verification/ITALIC/ITALIC_movementPoints_notbalanced_frrVSfpr.png)  |  ![](outputs/output_Biotouch/18-15_02-02-2018/Verification/BLOCK_LETTERS/BLOCK_LETTERS_movementPoints_notbalanced_frrVSfpr.png)

这只是一个带有一些图像的相对引用的表格。

所引用的图像都具有相同的尺寸

这就是输出结果: enter image description here

为什么中间行的图像较小?


1
额外的交替行是否重复该模式? - davidryab
该模式似乎独立于图像重复:https://i.imgur.com/gTHAg7z.png - Luca
我无法重现这个问题。你能否添加一个 GitHub 存储库的链接,以便我们查看一下? - Chris
这个:https://github.com/LucaMoschella/BiotouchLearner - Luca
2个回答

19

"问题"在于每个图像都添加了边框。偶数行的边框为白色,奇数行的边框为浅灰色。

由于背景和边框都是白色的,因此偶数行中的图像似乎没有边框。

(感谢github支持团队的Shawna)

中的所有图片都具有相同的尺寸。

10
您可以使用以下 HTML 标签,来完成这个任务:
<table>
  <tr>
    <td> <img src="img1.png"  alt="1" width = 360px height = 640px ></td>

    <td><img src="img2.png" alt="2" width = 360px height = 640px></td>
   </tr> 
   <tr>
      <td><img src="./Scshot/cab_arrived.png" alt="3" width = 360px height = 640px></td>

      <td><img src="./Scshot/trip_end.png" align="right" alt="4" width = 360px height = 640px>
  </td>
  </tr>
</table>

更多信息,请参阅此链接


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接