HTML5 Drag and Drop - No transparency?

后端 未结 12 1886
青春惊慌失措
青春惊慌失措 2020-12-05 02:00

When I drag and drop an element on my page the element becomes \"ghosted\". Basically it gets some transparency value.

Is there some way to make it opacity: 1;

12条回答
  •  佛祖请我去吃肉
    2020-12-05 02:40

    Suggestion, do the following, now for this I m using jQuery, try it, before saying something wont work, we are not here to give answers, but here to point you in the right direction.

    function dragStartHandler(e) { 
       $("span.{CLASS}")addClass('overdrag'); 
    } 
    

    then you need to come up with away to tell that it has stoped draging and dropped into position, and then to RemoveClass('overdrag');

    This is not hard to do, so I think you should be able to do it. I want to thank @DonaldHuckle as this is really his solution not mine.

提交回复
热议问题