python - 降价表没有使列足够宽
问题描述
我在 jupyter 实验室有这个 Markdown 代码。
代码:代码图像
| 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 |
中间一栏只有标题“原始方程”那么长。如何让列自动调整其宽度以适应方程式。
解决方案
您可以将表格放在自定义类中,并使用 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>
推荐阅读
- php - 如何使用 PHP Laravel 框架在 Cloudinary 中的选定文件夹上上传图像?
- amazon-web-services - 从办公室到多个帐户的 VPN 对等的最佳实践
- android - 重命名包后无法生成签名的 APK
- spring-boot - @Cacheable 在 Controller 中工作,但不在服务内部
- ios - UICollectionViewCell:单元格可见性更改时是否会触发任何事件?
- angular - “复选框”无法正常工作
- angular - 离子复选框未自动选中
- vbscript - 带有传递对象的用户定义函数
- php - OOP:通过匿名函数从同一类获取方法到另一个方法
- python - 在 Windows 中通过 Python 添加到 PATH