问题描述
我在chartjs中有一个冗长的自定义html工具提示内容(带有数据的表)。
我无法获得溢出-y:滚动即可工作。任何人都可以将我指向正确的方向。
我用于自定义html工具提示的css如下所示
/* Add application styles & imports to this file! */
canvas{
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
#chartjs-tooltip {
position: absolute;
opacity: 1;
-webkit-transition: all .1s ease;
transition: all .1s ease;
pointer-events: none;
-webkit-transform: translate(-50%,0);
transform: translate(-50%,0);
z-index: 10;
max-height: 400px;
overflow-y: scroll !important;
}
.chartjs-tooltip-key {
display: inline-block;
width: 10px;
height: 10px;
margin-right: 10px;
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)