高德地图修改label的样式
高德默认的是蓝色的标签,我们自己自己改一下样式。加上一下样式就能更改标签的颜色 <style> .amap-marker-label{ position: absolute; z-index: 2; border: 1px solid #ccc; background-color: white; white-space: nowrap; cursor: default; padding: 3px; font-size: 12px; line-height: 14px; } </style>
结果如下图: