Preventing images and text to be selected

后端 未结 4 1448
一个人的身影
一个人的身影 2021-02-02 16:39

I have an image being hacked in as a background image (as shown here). I\'ve noticed that if I drag my mouse over it though, it selected the image so that it can\'t be deselect

4条回答
  •  渐次进展
    2021-02-02 17:01

    If you are using jQuery I've written a tiny jQuery plugin - wrapper that does pretty much what ppumkin wrote:

    (plugin is in js part along with an example usage) http://jsfiddle.net/gryzzly/HtvB8/

提交回复
热议问题