如何在jQuery vmap中更改工具提示样式?(How to change tooltip style in jQuery vmap?)

系统教程 行业动态 更新时间:2024-06-14 16:52:52
如何在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; }

更多推荐

本文发布于:2023-04-05 12:21:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/797a46b7d46ad3f303af8e9f1cd51d2f.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:样式   提示   工具   如何在   jQuery

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!