【问题标题】:Images in a table with GitHub markdown带有 GitHub markdown 的表格中的图像
【发布时间】:2018-07-17 23:14:20
【问题描述】:

我在 github 上格式化 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)

它只是一个表,其中包含对某些图像的相对引用。

引用的图像具有所有same dimensions

结果如下:

为什么中间行的图片更小?

【问题讨论】:

标签: github github-flavored-markdown readme


【解决方案1】:

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

“问题”是每个图像都添加了边框。偶数行边框为白色,奇数行边框为浅灰色。

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

(感谢 github 支持团队的 Shawna)

【讨论】:

    【解决方案2】:

    你可以使用这些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>
    

    更多信息,您可以在这里查看Link

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-30
      • 1970-01-01
      • 2019-09-25
      • 1970-01-01
      • 1970-01-01
      • 2016-07-12
      • 2018-03-01
      • 2018-06-20
      相关资源
      最近更新 更多