【问题标题】:How to change the font size of text in one cell jupyter lab?如何在一个单元格 jupyter lab 中更改文本的字体大小?
【发布时间】:2021-03-18 01:29:50
【问题描述】:

我想更改 jupyter lab 中特定 markdown 单元格的字体大小,而不是整个输出。最后我会将我的项目转换成一个 html 文件。

我已经试过了:

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

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

提前致谢

【问题讨论】:

    标签: python html css font-size jupyter-lab


    【解决方案1】:

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

    <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>
    

    【讨论】:

    • 我很好,谢谢阿努拉格,希望你也很好。我使用了您的代码:
      &lt;html&gt; &lt;head&gt; &lt;style type="text/css"&gt; .a{ font-size: 600%; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="a"&gt;My text in here&lt;/div&gt; &lt;/body&gt; &lt;/html&gt;&lt;br/&gt; 它不会改变字体大小。它只是向我显示默认字体大小。
    猜你喜欢
    • 2011-07-16
    • 2013-02-03
    • 2021-09-13
    • 1970-01-01
    • 1970-01-01
    • 2011-03-20
    • 2017-10-21
    • 2011-12-18
    • 1970-01-01
    相关资源
    最近更新 更多