0
Do not see css declaration
I need to get p.style.transform (p is paragraph), but it doesn't see value: alert(p.style.transform) make empty string. But you can see, in css there is rule which is applied on paragraph. How can i get real value of transformation of paragraph? https://code.sololearn.com/Wn3Ix2Jtgh3C/?ref=app
2 Answers
+ 1
Maybe you can use getComputedStyle()
https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle
+ 1
Thank, but it works not such i need