我想這demo here使用jquery無法在身體中移動時發生錯誤?
在HTML:
...
<body>
<div id="button-wrapper" style="position: absolute; opacity: 1; width: 27px; height: 20px;">
<input type="submit" value="submit">
</div>
</body>
...
在jQuery中:當我移動鼠標放在身體發生
$(document).ready(function(){
$("#button-wrapper").parent().mousemove(function(e) {
jQuery("#button-wrapper").css({
top : e.pageY - 10,
left : e.pageX + 30
});
});
});
錯誤。提交按鈕無法在鼠標移動事件上運行。我應該如何解決這個問題?
我甚至都不明白這個問題是什麼問題O.o – Mutmatt