- 博客(1)
- 收藏
- 关注
原创 getComputedStyle和currentStyle的使用方法
getComputedStyle和currentStyle的使用方法getComputedStyle可获取当前元素的所有css属性,返回的是一个[object CSSStyleDeclaration]对象,用法为: var Div=document.getElementById('div'); var str=window.getComputedStyle(Div,null);//返回的是一个
2017-08-09 20:01:52
721
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人