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ダイアログのサイズをウィンドウのサイズに合わせるにはどうすればよいですか?
「auto」を使用してみましたが、それはその要素に合わせてサイズを変更するだけであり、動的ではないpxの正確なb / cを指定したくありません。ありがとう!
ここでは少し推測していますが、以下を使用してウィンドウのサイズを取得できます。
var windowWidth = $(window).width(); var windowHeight = $(window).height();
したがって、私はそれを取り、その値を jQuery ダイアログに渡します。
$( ".dialog" ).dialog({ height: windowHeight, width: windowWidth });