随便写-在不用jquery的情况下
document.querySelector('')//里面写和jquery选择器里面一样的东西
获取计算后的样式结果
document.defaultView.getComputedStyle(document.querySelectorAll("div").item(0)).width
document.defalutView.getComputedStyle(a) //a放一个dom对象 返回的是一个 css2properties 可以点出各种属性
大概..随手记

浙公网安备 33010602011771号