在IPython笔记本markdown/标题单元格中居中显示文本? [英] Centering Text in IPython notebook markdown/heading cells?

查看:87
本文介绍了在IPython笔记本markdown/标题单元格中居中显示文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想自定义我的笔记本,使其更具可读性和时尚性.因此,我想从标头居中开始.有可能吗?

I want to customize my notebook, make it more readable and stylish. So for that, I want to start with centering my headers. Is it possible?

推荐答案

实际上,您可以为单元格使用markdown模式,并使用普通的HTML代码,如

You can actually use the markdown mode for the cell and use the normal HTML code, as in

<h1><center>Centered text!</center></h1>

这篇关于在IPython笔记本markdown/标题单元格中居中显示文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆