var root = document.querySelector(':root');
root.style.setProperty('--customHeight', "36px");
09-09
2078
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-30
603
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
var root = document.querySelector(':root');
root.style.setProperty('--customHeight', "36px");