繁体   English   中英

如何在一个单元格 jupyter lab 中更改文本的字体大小?

[英]How to change the font size of text in one cell jupyter lab?

我想更改 jupyter 实验室中特定 markdown 单元格的字体大小,而不是整个 output。 最后我会将我的项目转换为 html 文件。

我已经尝试过了:

<html>
    <head>
        <style>
            div.a {
             font-size: 300%;
              }
        </style>
        <body>
            <div class="a">My text in here</div>
        </body>
    </head>
</html>

但这并没有改变我在 Markdown 下运行单元格后的文本大小。 我也不想使用,以便不为该特定文本提供自动编号。

提前致谢

我看到你想改变字体大小:

<html>
<head>
    <style type="text/css">
        .a{                    //for class use .(class-name) 
            font-size: 300%;
        }
    </style>
</head>                        // all the styling is to be done inside the head tag.
<body>
    <div class="a">My text in here</div>
</body>
</html>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM