chrome js 获取css

var myDiv = document.getElementById("chooseRect"); 
var computedStyle = document.defaultView.getComputedStyle(myDiv, null);  console.log(computedStyle.width );
  VM33412:3 20px
原文地址:https://www.cnblogs.com/zfdai/p/5390290.html