我正在使用jQuery滑塊,但無法移動手柄。jQuery Mobile - 滑塊無法移動
的HTML結構:
<div id="map" class="map" style="position: relative;">
<div id="legend" class="legend" style="position: absolute; top: 0px; right: 0px; width:300px; z-index: 100;">
<div style="width:290px; height: 150px; padding: 5px;">
<label class="checkbox-label"><input name="gai_max_V" id="gai_max_V" class="runoff" type="checkbox"><image src="icons/icona_land_use.png"/><p id="legend_text">Soil Runoff Capacity (1955)</p></input></label>
<div id="div-slider">
<input type="range" name="slider-1" id="slider-1" value="80" min="20" max="100" step="20" data-highlight="true">
</div>
<div style="width:290px; height: 150px; padding: 5px;">...</div>
<div style="width:290px; height: 150px; padding: 5px;">...</div>
</div>
</div>
jQuery Mobile的版本是1.4.5,地圖,那是父DIV是由單張創建的內容:
var map = L.map('map', {
center: [45.81, 9.1],
zoom: 15
});
你能猜到是爲什麼我無法移動手柄?
感謝,
Eylul
這是最好的,你顯示你所有相關的代碼,例如:你怎麼初始化滑塊等... – iH8
其實,這是它,我只是把它的HTML裏面,然後附上一個事件監聽器,但我認爲它不相關。順便說一下,感謝您檢查問題:) –
無法重現,您可以在這裏看到:http://imgur.com/ZebN41a在Plunker上使用以下示例:http://embed.plnkr.co/oLMCHGlOOmzZWf1CclIh/ – iH8