传单缩放控制 +/- 外观
Leaflet Zoom Control +/- Appearance
我注意到 Leaflet 缩放控件有带 + 和 - 的下划线。无论如何删除下划线?我试过更改 'text' 但该文本也带有下划线。
TIA 寻求任何帮助
杰达威尔逊
通常下划线是不可见的,但我认为您已经定义了自己的 CSS 并且您已经用 text-decoration: underline !important
覆盖了 text-decoration
属性 所有 a
个元素。
如无必要,请不要使用!important
。
将此添加到您的 CSS 文件中:
.leaflet-bar a, .leaflet-bar a:hover {
text-decoration: none !important;
}
我注意到 Leaflet 缩放控件有带 + 和 - 的下划线。无论如何删除下划线?我试过更改 'text' 但该文本也带有下划线。
TIA 寻求任何帮助 杰达威尔逊
通常下划线是不可见的,但我认为您已经定义了自己的 CSS 并且您已经用 text-decoration: underline !important
覆盖了 text-decoration
属性 所有 a
个元素。
如无必要,请不要使用!important
。
将此添加到您的 CSS 文件中:
.leaflet-bar a, .leaflet-bar a:hover {
text-decoration: none !important;
}