如何将 windows.getComputed 样式作为 int 值?
默认显示方式是字符串:
var style = window.getComputedStyle(elem1, null);
alert(style.top); //Returns a string
如何将 windows.getComputed 样式作为 int 值?
默认显示方式是字符串:
var style = window.getComputedStyle(elem1, null);
alert(style.top); //Returns a string