Answers for "get the value of css properties js"

0

get the value of css properties js

const style = getComputedStyle(element)

const backgroundColor = style.backgroundColor
console.log(backgroundColor) // rgb(0, 0, 0)
Posted by: Guest on March-21-2022

Code answers related to "get the value of css properties js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language