Some problems of css attribute drag dragging

1, there is a need to drag the icon, put it in one place, and generate a shortcut. I used the drag attribute in CSS to drag
2. The problem is: drag with the background color before dragging. I don"t want this background color.

here"s what happens when I drag

clipboard.png

clipboard.png

is there anything you can do to solve the problem of this background? Or is there a way to modify the icon while dragging? Changing his icon directly in this way is also a solution to this problem.

Jun.23,2022

you can set the background color of the icon to be transparent.


you can try Sortable


... addEventListener ('drag',function (e) {
e.target.style.background ='-sharpe4393c'
});

try this.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beb108-30da6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beb108-30da6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?