V
V
vasIvas2016-01-19 15:40:50
css
vasIvas, 2016-01-19 15:40:50

Why are all properties of an element with an empty string value?

Why do all html element properties have empty string values? Here is an example on codepen .
I need the coordinates of the element, but there are none..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivanq, 2016-01-19
@vasIvas

***.style contains only what you yourself put there and the style attribute in html. To view the properties set via the stylesheet, you need to use getComputedStyle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question