私が探しているのは、コンテナのサイズをオンクリックで変更することです。
コンテナの内部には、高さの異なる 2 つのパネルがスライドします。トグル機能をリッスンし、必要に応じてサイズを変更するには、コンテナーが必要です。
ここまでのコードは...
$(document).ready(function() {
var content = $("#content_container");
var childHeight = $('.panel-container').height();
if (content < childHeight) {
$(content).css("height", 657 + "px");
}
else {
$(content).css("height", "auto");
}
});
PS。私はjQueryが初めてです!!