【问题标题】:Color note boxes sintax not showing in Google ColabGoogle Colab 中未显示彩色注释框 sintax
【发布时间】:2021-05-01 02:35:48
【问题描述】:

在 jupyter 笔记本中使用彩色笔记框时,以下文本单元格无法在 Google Colab 中正确呈现:

<div class="alert alert-block alert-info">
<b>Tip: </b>
Use blue boxes for Tips and notes. If it’s a note, you don’t have to include the word “Note”. 
</div>

【问题讨论】:

  • 哇,我用谷歌搜索我自己的问题。我用它来审查我的学生的提交。是否有另一种方法可以清楚地向 jupyter notebook 添加修订?

标签: html jupyter-notebook markdown google-colaboratory


【解决方案1】:

您可以尝试在 Colab 上运行它。不要忘记使用魔法线%%html。我刚刚将@user2304916的代码从here修改了。

%%html
<style>
div.warn {    
    color: #356A89;
    background-color: #D4EAF7;
    border-left: 5px solid #3C82E3;
    padding: 0.5em;
    }
 </style>
<div class=warn>
Use blue boxes (alert-info) for tips and notes. 
If it’s a note, you don’t have to include the word “Note”.
</div>

<style>
div.warn {    
    color: #356A89;
    background-color: #D4EAF7;
    border-left: 5px solid #3C82E3;
    padding: 0.5em;
    }
 </style>
<div class=warn>
Use blue boxes (alert-info) for tips and notes. 
If it’s a note, you don’t have to include the word “Note”.
</div>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-06-13
    • 1970-01-01
    • 2020-07-03
    • 1970-01-01
    • 2022-06-29
    • 1970-01-01
    • 1970-01-01
    • 2019-01-20
    相关资源
    最近更新 更多