0
How to compare CSS with a String in JS?
Why does »document.getElementById(…).style.left=="5px"« return false if CSS is »left:5px;«?
1 ответ
+ 2
Defining in CSS won't let you get true in logical comparison in JS.
It returns true if you use js to assign it first.