HTML5 Drag and Drop - No transparency?

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

    It looks like it can't be done. The dragged element is put into container that has it's own, lower than 1, opacity. This means that while you can lower the opacity of the dragged element you can't get it higher than the opacity of the encapsulating element.

    It might be possible to override default browser settings for such element, but since nothing is added to DOM during the drag it would be very tricky at best.

提交回复
热议问题