【问题标题】:How to modify the line width of ipython notebook markdown cell如何修改ipython notebook markdown cell的线宽
【发布时间】:2015-06-07 12:01:32
【问题描述】:

我使用 ipython notebook 使用 markdown 单元来记日记。问题是单元格的线宽有点太宽,不像博客那样很好看。问题是:我怎样才能减少线条的宽度并使其保持在页面的中间(或左侧)?

方法应该简单,不影响其他细胞。

【问题讨论】:

    标签: css ipython markdown ipython-notebook


    【解决方案1】:

    您可以通过 custom.css 更改应用于文本单元格的 CSS

    只需添加以下几行

    div.text_cell {
        width:550px;
    }
    

    有了这个,笔记本看起来像

    这里有很多问题,通过自定义 css 处理笔记本的样式,参见例如hereherehere

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-07-24
      • 2015-02-27
      • 1970-01-01
      • 2015-12-16
      • 2016-04-02
      • 1970-01-01
      • 2016-02-12
      相关资源
      最近更新 更多