solve the question of much padding and margin

This commit is contained in:
sulenn 2019-12-10 11:12:22 +08:00
parent 5553608fa3
commit 194642439b
1 changed files with 5 additions and 1 deletions

View File

@ -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实例地图