How to change a css variable with javascript. Copy. var root = document.querySelector(':root'); root.style.setProperty('--variable', 'lightblue'); /or/ ...
確定! 回上一頁