getBoundingClientRect
var rect = $("#a")[0].getBoundingClientRect(); var width = rect.width; var height = rect.height;
getComputedStyle
var element = document.getElementById("a"); alert(window.getComputedStyle(element).width);