📜  如何阻止拖动图像 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:42.483000             🧑  作者: Mango

代码示例1
On your  tag add ondragstart="return false" . This will disable dragging of images. But if you also want to disable text selection then add onselectstart="return false" .