【问题标题】:how to move image near to table in GitHub markdown?如何在 GitHub markdown 中将图像移动到表格附近?
【发布时间】:2018-06-20 02:42:29
【问题描述】:

我刚开始使用 GitHub,找不到任何关于如何在 README.md 文件中移动图像的信息。

我设法将桌子移到了图片下方,但我想把它放在图片旁边。

正如您在屏幕截图中所见,“RED”是当前位置,“BLUE”表示所需位置。 Link to the GitHub repository

有什么想法吗?

【问题讨论】:

    标签: image github markdown


    【解决方案1】:

    这是不可能的。至少我尝试过使用 flexbox。

    你能得到的最接近的方法是将图像直接放在表格中并使用 HTML 而不是像这样的 MarkDown:

    <table>
        <tr>
            <th colspan="2">kur:</th>
        </tr>
        <tr>
            <td rowspan="6">
                <img width="500px" height="auto" alt="screen shot 2018-01-10 at 21 42 01" src="https://user-images.githubusercontent.com/23652900/34791944-2951996c-f64f-11e7-91d1-25f6a88b24cf.png">
            </td>
        </tr>
        <tr>
            <td>x un y - šāviņa koordinātes (metros);</td>
        </tr>
        <tr>
            <td>t - laiks (sekundes);</td>
        </tr>
        <tr>
            <td>v0 - sākuma ātrums (metros sekundē);</td>
        </tr>
        <tr>
            <td>α - leņķis zem kura izlido šāviņš attiecība pret horizontālu virsmu;</td>
        </tr>
        <tr>
            <td>g - brīvas krišanas paātrinājums (m/s<sup>2</sup>).</td>
        </tr>
    </table>
    

    在 GitHub 上预览:

    Live Demo

    【讨论】:

    • @Dr.MagPie 很高兴我能帮上忙 :)
    猜你喜欢
    • 1970-01-01
    • 2018-07-17
    • 1970-01-01
    • 2019-09-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多