var oDiv=document.getElementById('div1'); //alert(oDiv.style.width); //IE //alert(oDiv.currentStyle.width); //Chrome、FF alert(getComputedStyle(oDiv, false).width);