CSS grid layout changing column width with javascript
问题 I try setting up a CSS grid layout as follows .wrapper { width: 800px; display: grid; grid-template-columns: repeat(3, 200px); grid-template-rows: repeat(5, 200px); } Is it possible to locate grid-template-columns in JS then re-size the columns? I came across a situation where I could find it (lost the code) but when I tried changing it, Chrome DevTools say the value is computed and cannot be changed. Any help pointing me in the right direction (or other ways to do it, but use of grid is a