solve the question of much padding and margin
This commit is contained in:
parent
5553608fa3
commit
194642439b
|
@ -8,6 +8,10 @@
|
|||
<!-- 引入 china.js -->
|
||||
<script src="china.js"></script>
|
||||
<style>
|
||||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.div-a{ position: fixed;width:400px;height:536px;padding:10px;z-index: 1;background-color: rgba(0,0,0,0.3);}
|
||||
.div-b{ width:400px;height:536px;padding:5px;color:rgb(255, 255, 255);position: relative;}
|
||||
</style>
|
||||
|
@ -18,7 +22,7 @@
|
|||
<div class="div-b" id="mainGraph">知识图谱</div>
|
||||
</div>
|
||||
<!-- 为ECharts准备一个具备大小(宽高)的Dom -->
|
||||
<div id="main" style="width: 100%;height:810px;"></div>
|
||||
<div id="main" style="width: 100%;height:100vh;"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
// 基于准备好的dom,初始化echarts实例,地图
|
||||
|
|
Loading…
Reference in New Issue