私は次のスクリプトを持っています。これはいくつかのボタン(今のところ偽のボタン)をdivに追加します:
$("<div class='divButtons'>").appendTo( $(this).closest(".widget").find(".widget_header") );
// not real buttons, just text at the moment. Trying to get the position right first.
$(".divButtons").text("(close), (min), (max), (help)").css({background:"red",float:"right"});
divButtons
問題は、の右上隅を親の右上隅に配置する方法がわからないこと.widget_header
です。を追加しようとしましtop:some_number_here
たが、jQueriesを使用してdivを移動するとうまくいきませんui-sortable
。