【问题标题】:Python notebook markdown: Bullet points within a coloured note boxPython notebook markdown:彩色笔记框中的要点
【发布时间】:2018-10-22 11:36:30
【问题描述】:

我才刚刚开始使用警告框(jupyter markdown 单元格中的彩色注释框)。这些非常有用。但是,我试图在彩色框中包含一个项目符号列表,但它似乎不起作用。有没有一种简单的方法可以做到这一点,或者我应该放弃? Here is some documentation about colored boxes

例如,在 jupyter 的 markdown 单元格中包含以下代码。这个想法是能够用项目符号逐项列出。

<div class="alert alert-block alert-warning">
<b>Example:</b> These is the content of the box. Here is my list:
- item 1
- item 2
</div>

谢谢!

【问题讨论】:

    标签: python jupyter-notebook markdown


    【解决方案1】:

    在大多数情况下,一旦你进入了html的“域”,最好还是坚持使用html,这样可以节省你很多时间。只需使用

    <div class="alert alert-block alert-warning">
    <b>Example:</b> These is the content of the box. Here is my list:
    <ul>
        <li>item 1</li>
        <li>item 2</li>
    </ul>
    </div>
    

    【讨论】:

      猜你喜欢
      • 2018-06-03
      • 1970-01-01
      • 2020-11-04
      • 1970-01-01
      • 2018-08-16
      • 1970-01-01
      • 2020-08-21
      • 1970-01-01
      • 2017-04-30
      相关资源
      最近更新 更多