How to get style attribute values in an inline style

directly above the picture, how to take this top value

Feb.27,2021

document.querySelector('.er').style.top

getAttribute('style')

clipboard.png


// 17px
dom.style.transform.match(/translate3d.+,(.+),/)[1].trim()
Menu