Iframe-PlotlyJs.page.vue
This commit is contained in:
32
public/iframe/for-plotly.html
Normal file
32
public/iframe/for-plotly.html
Normal file
@ -0,0 +1,32 @@
|
||||
<!--
|
||||
XXX: Plotly 需要用 iframe 嵌套在页面中的原因:
|
||||
-->
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Plotly 图表的 HTML 页面</title>
|
||||
<!-- <script src="https://cdn.plot.ly/plotly-3.0.1.js"></script> -->
|
||||
<script src="./plotly-3.0.1.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="PLOTLY_CHART" style="width: 100%; height: 100%"></div>
|
||||
</body>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden; /* 防止滚动条出现 */
|
||||
}
|
||||
|
||||
/* 确保容器占满整个 iframe */
|
||||
body > div {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</html>
|
257645
public/iframe/plotly-3.0.1.js
Normal file
257645
public/iframe/plotly-3.0.1.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user