html代码扭曲字,Jupyter Notebook RISE扭曲了演示文稿的HTML/CSS布局

我想在朱庇特做一个完整的演讲。我已经在浏览器中尝试了一些HTML-CSS,在浏览器中几乎可以正常工作:

HTML格式

index.html

:

title

This is a long miltiline title for a random topic which nobody cares about!

PythonLogo


by-nc-nd.svg

twitter

body {

position: relative;

min-height: 90vh;

}

#content-wrap {

padding-bottom: 2.5rem;

}

.text {

font-family: computer Modern;

}

#firstSlideTitle {

width: 80%;

font-size: 300%;

font-weight: bold;

text-align: center;

margin: auto;

margin-top: 40px;

border-style: solid;

border-radius: 15px;

}

#firstSlidePic {

width: 50%;

height: auto;

padding: 40px;

}

.center {

display: block;

margin-left: auto;

margin-right: auto;

}

footer {

position: absolute;

bottom: 0px;

width: 100%;

height: 2.5rem;

}

#twitter{

float: right;

width: 33.3%;

text-align: right;

}

结果几乎是可以的:

cr0Lv.png

我试着把CSS代码放在

在Jupyter的代码单元中标记,配备

%%html

魔法。也不得不改变所有

id

s至

classe

因为Python Jupyter无法处理

#

s,将它们视为python注释。你可以在

this Github Gist

. 然而,结果更令人失望:

5ueaV.png

我试过一些变通办法,但都不够好。如果你能帮助我知道怎么做,我将不胜感激。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值