我试图在拖动图像时禁用选择。但它似乎并不奏效。我知道类似questions已被问到,但似乎没有为我工作。在图像上拖动鼠标时禁用选择
我也尝试在许多类似的问题中建议在CSS中输入。
-webkit-touch-callout: none;/*for mobile*/
-webkit-user-select: none;/*for chrome*/
-khtml-user-select: none;/*for safari*/
-moz-user-select: none;/*for Mozilla*/
-ms-user-select: none;/*for mircosoft*/
-o-user-select: none;/*for opera*/
user-select: none;/*base css ,but not work in all browsers*/
使用以下-webkit-user-select:none; –