Hello, I need to get the value of obj.style.backgroundPosition
. Is it possible at all?
Or how to get the css properties left and top of a div object absolutely positioned?
Hello, I need to get the value of obj.style.backgroundPosition
. Is it possible at all?
Or how to get the css properties left and top of a div object absolutely positioned?
window.getComputedStyle(document.querySelector('div#hai')).backgroundPosition
document.getElementById("elementID").style.backgroundPosition
Source: https://ru.stackoverflow.com/questions/104059/
All Articles