我有這種類型的元素:HTML5 - 將N個液滴與申報單和內部圖像
<div draggable="true" id="item" style="margin:20px;background:red;height:400px;width:400px;">
<a href="#" target="_blank">
<img style="margin:40px;" src="http://www.placekitten.com/100/100" alt="">
</a>
</div>
我希望能夠到:
- 將整個DIV,即使我點擊在/ anchorimage上(拖動之前)。
- 仍然正常響應錨點/圖像點擊(沒有拖動)。
現在,當我點擊它時,只有圖像被拖動。
這裏有一個小提琴:http://jsfiddle.net/M5tBd/
讓我們去找朋友。 –
現在我很絕望。 –