我已经注意到Leaflet Zoom Control的下划线带有+和-。反正有没有删除下划线?我尝试更改“文本”,但该文本也带有下划线。
TIA寻求任何帮助jdadwilson
通常,下划线不是可见的,但是我认为您已经定义了自己的CSS,并且在这里已经为所有text-decoration
元素用text-decoration: underline !important
覆盖了a
属性。
如果不需要,请不要使用!important
。
将此添加到您的CSS文件:
.leaflet-bar a, .leaflet-bar a:hover {
text-decoration: none !important;
}