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.
次のコードがあり、height(300)の代わりに、height()= document height-100
$(".bar").height(XXX);
var DocHeight = $(document).height(); $(".bar").height(DocHeight-100);
これを試して:
var h = $(window).height() - 100; $(".bar").height(h);