2013-12-12 2 views

답변

4

leaflet.css를 호출 한 후 다음 규칙을 사용하여 <style> 태그를 포함하면 팝업 및 팝업 팁의 색상을 변경할 수 있습니다.

.leaflet-popup-content-wrapper { background-color: #000 }

는 여기에 내가 리플릿의 홈페이지에 팝업의 background-color을 편집 한 후 내가 찍은 스크린 샷입니다. 더 이상의 질문이 있으면 알려주세요. 건배.

enter image description here

+1

우수! 고맙습니다. – Scott

3

열기 leaflet.css 및 검색 :

.leaflet-popup-content-wrapper, 
    .leaflet-popup-tip { 
    background: rgb(111, 51, 51); 
    box-shadow: 0 3px 14px rgba(0,0,0,0.4); 
} 

그런 다음 당신이 원하는 색으로 배경 값을 변경합니다.

+1

감사! 두 가지 해결책이 모두 효과가 있다고 생각합니다. – Scott

관련 문제