我在Rails 6应用程序中使用。我已经实现了拖放事件。 "translate(" + x + "px, " + y + "px)"; return target.setAttributeto it's original position but the next time I attempt to drag it, it app
我试着用JQuery使这个div居中,这样它就能响应,但我似乎做不到,我已经试过了function resize() { var w = $(window).width(); ct.height(h / 2.5); ct.css("left", w / 2); ct.css("top", h / 2);