Make div fill up entire CSS grid's row when the other part is not available
问题 If I want to use the css-grid and make one of its child fill up the remaining width when the other child is not present on the screen, how would I do something like that? var button = document.querySelector('.click'); var buttone = document.querySelector('.clicke') var left = document.querySelector('.left'); button.addEventListener('click', function(e) { left.style.display = 'none'; }) buttone.addEventListener('click', function(e) { left.style.display = 'block'; }) html, body { margin: 0; }