【问题标题】:Markdown table not making column wide enough降价表没有使列足够宽
【发布时间】:2021-07-10 11:15:13
【问题描述】:

我在 jupyter 实验室有这个 Markdown 代码。

代码:Image of Code

| Phenomanae               | Originial Equations                                   | Approximate  |
|--------------------------|-------------------------------------------------------|              |
|Radiation                 |$Q_{R} = A\epsilon\sigma (T^{4}_{plate} - T^{4}_{air})$|wwwwwwwwwww   |
|Conduction with Work Roll |$Q_{Cond} = -kA\frac{\partial T}{\partial z}$          |wwwwwwwwwww   |
|Convection with Air       |$Q_{Air} = hA(T_{plate}-T_{air})$                      |wwwwwwwwwww   |
|Convection with Descaler  |$Q_{Desc} = h_w A_w(T_{plate} - T_{water})$            |wwwwwwwwwww   |
|Deformation               |$Q_{Desc} = h_w A_w(T_{plate} - T_{water})$            |wwwwwwwwwww   |

Output Table

中间一栏只有标题“原始方程”的长度。如何让列自动调整其宽度以适应方程式。

【问题讨论】:

标签: python markdown


【解决方案1】:

您可以将表格放在自定义类中,并使用 css 对其进行样式设置。这样您就可以为第二列设置恒定宽度

<div class="foo">
| Phenomanae               | Originial Equations                                   | Approximate  |
|--------------------------|-------------------------------------------------------|              |
|Radiation                 |$Q_{R} = A\epsilon\sigma (T^{4}_{plate} - T^{4}_{air})$|wwwwwwwwwww   |
|Conduction with Work Roll |$Q_{Cond} = -kA\frac{\partial T}{\partial z}$          |wwwwwwwwwww   |
|Convection with Air       |$Q_{Air} = hA(T_{plate}-T_{air})$                      |wwwwwwwwwww   |
|Convection with Descaler  |$Q_{Desc} = h_w A_w(T_{plate} - T_{water})$            |wwwwwwwwwww   |
|Deformation               |$Q_{Desc} = h_w A_w(T_{plate} - T_{water})$            |wwwwwwwwwww   |
</div>

<style>
    .foo table {
        ...
    }
</style>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-02-23
    • 1970-01-01
    • 1970-01-01
    • 2011-02-09
    • 2016-03-19
    • 1970-01-01
    • 1970-01-01
    • 2021-12-17
    相关资源
    最近更新 更多