颜色注释框 sintax 未在 Google Colab 中显示

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>\n
Run Code Online (Sandbox Code Playgroud)\n

ワタル*_*ワタル 2

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

\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>\n
Run Code Online (Sandbox Code Playgroud)\n
\n
\n

\r\n
\r\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>\n
Run Code Online (Sandbox Code Playgroud)\r\n
\r\n
\r\n

\n