Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
<div class="container" id="container" style="background: rgba(0, 0, 0, 0.50); overflow-y: auto;">
<div class="container" id="container" style="background: rgba(0, 0, 0, 0.50); overflow-y: auto; height:500px;"> // Добавилось height:500px;
let container = document.querySelector('#container'), containerHeight = container.clientHeight; container.style.height = containerHeight + 'px';
$('#container').css('height', $('#container').innerHeight() );
javascript