问题:
解决:
在tooltip 中添加如下代码:
tooltip:{ position:function(point, params , dom, rect, size){ dom.style.transform = "translateZ(0)" } , }
-------------------题外话---------------------
原来通过样式调整了层级,结果失效了
.echart /deep/ div:nth-child(1){ z-index : 1; } .echart /deep/ canvas{ z-index : 2; }
tootip自己的层级是,z-index:9999999, 所以不需要设置。
画echart图时,安卓手机正常,苹果手机上tooltip 在坐标轴下一层
原文:https://www.cnblogs.com/Eileen-lu/p/13633461.html