如何在Jupyterlab中居中对齐Altair图表,使其在导出的HTML中保持居中? 以下代码使notebook中的绘图居中;但是,当我将notebook导出为HTML时,输出为空/空白。 import altair as alt
import pandas as pd
from IPython.core.display import display, HTML
df=pd.DataFrame({'a': [1,2,3], 'b': [2,3,4]})
c=alt.Chart(df).mark_bar().encode(
x='a'
当我试图为一个班级创建一个网页时,我在html中居中时遇到了问题。这是我在html中输入的:
<table align="center" width="50%">
<tr>
<td><b>Resume:</b></td>
<td><a href="UMD Resume, general revised.docx">Click here to download my resume.</a></td>
</tr>
<
HTML:
<div class="border">
<glyph class="center" [icon]="'star'" ></glyph>
<div class="centerText">
This Is Text that is centered.
</div>
</div>
Css:
.centerText{
text-align: center;
}
.border{