问题:
Is there a way to prevent the user from seeing a ghost of the image they are trying to drag (not concern about security of the images, but the experience).有没有办法防止用户看到他们试图拖动的图像的幻影(不关心图像的安全性,但关心的是体验)。
I've tried this which fixes the problem with the blue selection on text and images but not the ghost image:我试过这个解决了文本和图像上的蓝色选择的问题,但不是鬼图像:
img {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}
(I also tried nesting the image inside a div with the same rules applied to the div). (我还尝试将图像嵌套在 div 中,并将相同的规则应用于 div)。 Thanks谢谢
解决方案:
参考一: https://en.stackoom.com/question/VDEY参考二: https://stackoom.com/question/VDEY