要素が追加された後に余分なスペースを削除するために、元のドキュメントの高さをリセットしたいと思います。私が今持っているコードはこれです。
$(document).ready(function() {
var document_height = $(document).height();
document_height = 0.70 * document_height;
$(document).height(document_height);
});
これにより、ドキュメントの高さが変更されるはずですが、変更されません。これを行うより良い方法はありますか?