随便写-在不用jquery的情况下

document.querySelector('')//里面写和jquery选择器里面一样的东西

获取计算后的样式结果

document.defaultView.getComputedStyle(document.querySelectorAll("div").item(0)).width

document.defalutView.getComputedStyle(a)  //a放一个dom对象  返回的是一个  css2properties 可以点出各种属性

 

大概..随手记

posted @ 2014-09-01 13:54  tzyuan  阅读(95)  评论(0)    收藏  举报