Dan*_*eba 6 html markdown jupyter-notebook google-colaboratory
在 jupyter 笔记本中使用彩色注释框时,以下文本单元在 Google Colab 中无法正确呈现:
\n<div class="alert alert-block alert-info">\n<b>Tip: </b>\nUse blue boxes for Tips and notes. If it\xe2\x80\x99s a note, you don\xe2\x80\x99t have to include the word \xe2\x80\x9cNote\xe2\x80\x9d. \n</div>\nRun Code Online (Sandbox Code Playgroud)\n
您可以尝试在 Colab 上运行它。不要忘记使用魔线%%html。我刚刚从这里修改了@user2304916的代码。
%%html\n<style>\ndiv.warn { \n color: #356A89;\n background-color: #D4EAF7;\n border-left: 5px solid #3C82E3;\n padding: 0.5em;\n }\n </style>\n<div class=warn>\nUse blue boxes (alert-info) for tips and notes. \nIf it\xe2\x80\x99s a note, you don\xe2\x80\x99t have to include the word \xe2\x80\x9cNote\xe2\x80\x9d.\n</div>\nRun Code Online (Sandbox Code Playgroud)\n\n\n
%%html\n<style>\ndiv.warn { \n color: #356A89;\n background-color: #D4EAF7;\n border-left: 5px solid #3C82E3;\n padding: 0.5em;\n }\n </style>\n<div class=warn>\nUse blue boxes (alert-info) for tips and notes. \nIf it\xe2\x80\x99s a note, you don\xe2\x80\x99t have to include the word \xe2\x80\x9cNote\xe2\x80\x9d.\n</div>\nRun Code Online (Sandbox Code Playgroud)\r\n| 归档时间: |
|
| 查看次数: |
1389 次 |
| 最近记录: |