1
我想設置div背景顏色(class =「markerDiv」),但我努力尋找,我失蹤了。我相信它會是如此之小,但需要幫助。提前div背景顏色不影響
千恩萬謝HTML:
<div id="map_Marker_Check_Block">
<div class="markerDiv" id="maker_school">
<label class="marker_label">School</label> <input class=
"marker_ckeckbox" name="markerType" type="checkbox" value="school">
</div><br>
<div class="markerDiv" id="maker_gym">
<label class="marker_label">Gym</label> <input class="marker_ckeckbox"
name="markerType" type="checkbox" value="gym">
</div><br>
</div>
CSS:
.markerDiv {
width: 14em;
height: 48px;
margin-left: 5px;
clear: both;
background-color: blue;
}
#map_Marker_Check_Block {
display: block;
position: absolute;
width: 15em;
height: 400px;
top: 0;
right: -12em;
z-index: 10;
overflow-x: hidden;
overflow-y: auto;
background-color: #FFF;
}
#maker_school {
background: url(../Icons/google_marker/Map_school.png) no-repeat;
}
http://jsfiddle.net/bSXyX/似乎工作? –
多數民衆贊成在奇怪..毫米那麼爲什麼不在我的代碼工作! – toxic
可能是一個緩存問題,你嘗試清除緩存嗎? –