Iframe-PlotlyJs-Comp.vue
This commit is contained in:
@ -11,7 +11,8 @@ XXX: Plotly 需要用 iframe 嵌套在页面中的原因:
|
||||
<script src="./plotly-3.0.1.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="PLOTLY_CHART" style="width: 100%; height: 100%"></div>
|
||||
<div id="PLOTLY_CHART_spectrogram" style="width: 100%; height: 100%"></div>
|
||||
<div id="PLOTLY_CHART_waterfall" style="width: 100%; height: 100%"></div>
|
||||
</body>
|
||||
<style>
|
||||
html,
|
||||
@ -24,9 +25,11 @@ XXX: Plotly 需要用 iframe 嵌套在页面中的原因:
|
||||
}
|
||||
|
||||
/* 确保容器占满整个 iframe */
|
||||
body > div {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user