【发布时间】:2021-02-19 15:04:48
【问题描述】:
【问题讨论】:
标签: python html css ipython jupyter-lab
【问题讨论】:
标签: python html css ipython jupyter-lab
添加 margin: 0 auto 与 JupyterLab 3.0 一样:
from IPython.core.display import display, HTML
display(HTML("<style>.jp-Cell { width: 60% !important; margin: 0 auto; }</style>"))
但我认为这样的问题可能会适得其反,因为我们已经在 How to horizontally center an element 中完美解释了 CSS 定位。
【讨论】: