레이어 스위처 색상을 변경해 보았습니다. 그러나 그것은 변경되지 않았습니다. 다음은 내 코드입니다. 나는 javascript 또한 osMap.addControl (new OpenLayers.Control.LayerSwitcher ({ 'activeColor': "white", 'fontColor': "black"})); 하지만 효과가 없습니다.
.olControlLayerSwitcher
{
position: absolute;
top: 25px;
right: 0;
width: 20em;
font-family: sans-serif;
font-weight: bold;
margin-top: 3px;
margin-left: 3px;
margin-bottom: 3px;
font-size: smaller;
color: white;
background-color: transparent;
z-index: 10000;
}
.olControlLayerSwitcher .layersDiv
{
padding-top: 5px;
padding-left: 10px;
padding-bottom: 5px;
padding-right: 10px;
background-color: #CCCCCC;
}
OL CSS는 style
속성 내에 설정 되며 재정의보다 강력합니다. !important
재정의 하려면을 사용해야 합니다.
background-color: #CCCCCC !important;
CSS 특이성을 참조하십시오 .
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다