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ダイアログを使用すると、ダイアログは表示されますが、左側が画面外になります。常に左側全体が表示されるように、代わりに画面外に移動させる方法はありますか?
編集:多くの人が私が求めていることを理解していないようです. ダイアログの位置を中央に設定することとは関係ありません。それはすでに行われています。
次のように、既存の DIV の座標を使用して設定を試すことができます。
$('#dialogDiv').dialog( "option", "position",{my: "left top",at: "left bottom", of: "#referenceDiv"});