HighCharts + reveal.js 图表大小
HighCharts + reveal.js chart size
我在 reveal.js 演示文稿中展示了很多图表,但我遇到了一个问题,我的一些图表随机调整了它们的大小,我需要刷新页面以使其再次恢复正常大小。这是代码
<section>
<center>
<div id="chart1" style="min-width: 465px; height: 600px; max-width: 900px;"></div>
</center>
</section>
<section>
<center>
<div id="chart2" style="min-width: 465px; height: 600px; max-width: 900px;"></div>
</center>
我不得不添加 <center></center>
其他方式,有时图表不会显示在幻灯片的中心,如果我也刷新页面,图表会居中。我加入了一些截图。
中心问题:
但是如果我输入 <center></center>
就没有问题
尺码问题:
如果你们能帮我找到解决办法,或者你们知道发生了什么。
<section>
<center>
<div id="chart1" style="height: 600px; width: 900px;"></div>
</center>
</section>
这解决了问题。
我在 reveal.js 演示文稿中展示了很多图表,但我遇到了一个问题,我的一些图表随机调整了它们的大小,我需要刷新页面以使其再次恢复正常大小。这是代码
<section>
<center>
<div id="chart1" style="min-width: 465px; height: 600px; max-width: 900px;"></div>
</center>
</section>
<section>
<center>
<div id="chart2" style="min-width: 465px; height: 600px; max-width: 900px;"></div>
</center>
我不得不添加 <center></center>
其他方式,有时图表不会显示在幻灯片的中心,如果我也刷新页面,图表会居中。我加入了一些截图。
中心问题:
<center></center>
尺码问题:
如果你们能帮我找到解决办法,或者你们知道发生了什么。
<section>
<center>
<div id="chart1" style="height: 600px; width: 900px;"></div>
</center>
</section>
这解决了问题。