diff --git a/src/main/resources/static/js/home/home.js b/src/main/resources/static/js/home/home.js index dbc4254..abb5d40 100644 --- a/src/main/resources/static/js/home/home.js +++ b/src/main/resources/static/js/home/home.js @@ -207,7 +207,7 @@ function echartsone(type){ confine: true, // 自定义内容格式化函数 // 其他tooltip样式和行为 - extraCssText: 'height:100px;', + extraCssText: 'height:auto;', backgroundColor: 'rgba(50,50,50,0.7)', // 背景颜色 borderColor: '#333', // 边框颜色 borderWidth: 1, // 边框宽度 @@ -259,7 +259,7 @@ function echartstwo(){ option = { tooltip: { trigger: 'item', - extraCssText: 'width:210px;height:100px;', + extraCssText: 'width:210px;height:auto;', formatter: function (params) { if (!params || !params.name || !params.value) { return ''; // 如果数据无效,则返回空字符串