It turns out accessing CSS variables from JavaScript is pretty easy via getComputedStyle and getPropertyValue . :root { --my-color: #f00; }
確定! 回上一頁