如何在jQuery vmap中更改工具提示样式?(How to change tooltip style in jQuery vmap?)
我用jQuery.vmap创建了一个地图并设置了showTooltip: true设置。 默认情况下,此工具提示具有黑色背景和白色字体; 我无法在Chrome中检查元素工具提示,以便为其更改css样式。
如何更改jQuery.vmap中的工具提示样式?
I created a map with jQuery.vmap and set the showTooltip: true setting. By default, this tooltip has a black background and white font; I can't inspect element tooltip in Chrome in order to change css style for it.
How can I change the tooltip style in jQuery.vmap?
最满意答案
查看提供的CSS ,似乎工具提示被称为“标签”。 要编辑(或覆盖)的CSS是:
.jqvmap-label { position: absolute; display: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; background: #292929; color: white; font-family: sans-serif, Verdana; font-size: smaller; padding: 3px; pointer-events:none; }Looking at the supplied CSS, it seems that the tooltips are called "labels". The CSS to edit (or override) is:
.jqvmap-label { position: absolute; display: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; background: #292929; color: white; font-family: sans-serif, Verdana; font-size: smaller; padding: 3px; pointer-events:none; }更多推荐
发布评论