jQuery get mouse position within an element

后端 未结 8 980
日久生厌
日久生厌 2020-11-22 16:56

I was hoping to craft a control where a user could click inside a div, then drag the mouse, then let up on the mouse in order to indicate how long they want something to be.

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 17:45

    I use this piece of code, its quite nice :)

        
    
    

提交回复
热议问题