HTML5 Drag and Drop - No transparency?

后端 未结 12 1864
青春惊慌失措
青春惊慌失措 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:23

    If you are using JavaScript then in the function which handles the dragStart event include set the style opacity to 1 example:

    function dragStartHandler(e) {
       this.style.opacity = '1.0';
    }
    

提交回复
热议问题