禁止鼠标选中拖拽
禁止鼠标选中拖拽:
<script>
var bodyStyle = document.body.style;
bodyStyle.mozUserSelect = 'none';
bodyStyle.webkitUserSelect = 'none';
</script>
禁止鼠标拖拽(可以鼠标选中但不能拖拽)
<script>
document.ondragstart = function() {
return false;
};
</script>