Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jQuery UI Resizable 機能を使用しようとしています。1 つのオブジェクトに南/西のサイズ変更ハンドラーのみを追加したいので、西と南にサイズ変更されます。サイズを変更するときに、別のオブジェクトのサイズを同時に変更したいのですが、「南」方向のみです。alsoresize プロパティを使用しようとしていますが、常に 2 番目のオブジェクトのサイズが両方向で同じ量だけ変更されるようです。これを達成する方法を知っている人はいますか?
ありがとうございました、
エリック
この仲間のエリックを試してみてください!マージン/パディングに問題がある可能性があります。
$('.main').resizable({ resize: function(event, ui) { $('.also').css("width",ui.size.width+"px"); } });