chrome js 获取css

var myDiv = document.getElementById("chooseRect"); 
var computedStyle = document.defaultView.getComputedStyle(myDiv, null);  console.log(computedStyle.width );
  VM33412:3 20px

 

posted @ 2016-04-14 11:07  淡然_  阅读(219)  评论(0编辑  收藏  举报