所以我可以display:none
标签前。下面是 css,但我的 .ct-chart 在图表 ex 的左侧和底部仍然有一些东西。下图。
.ct-labels, .ct-grids {
display: none;
}
理想情况下,蓝色图表位于白色模块的左侧并位于底部下方,以便与 div 匹配,绝对定位,并且图表响应开启。我假设空白是从 DOM 中仍然存在的标签创建的?
我想让图表在左侧和底部显示没有空白。我的.ct-chart
CSS看起来像这样。
.ct-chart {
position: absolute;
width: 100%;
left: 0;
top: 0;
height: 100%;
padding: 0;
z-index: -1;
}