- 博客(2)
- 收藏
- 关注
原创 主流浏览器对 clientHeight 和 scrollHeight 的解释
以下代码测试环境是: Chrome canary 61 Firefox 53 IE 11 10 9 8 以下的 clientHeight 和 scrollHeight 是 document.documentElement.clientHeight 和 document.documentElement.scrollHeight 的缩写当页面没有出现滚动的情况: IE 和 Firefox 表现一致
2017-06-16 19:53:56
1542
原创 window.getComputedStyle()方法的使用
使用 Dom 的 getComputedStyle 方法获取元素的样式 以下代码的测试环境为: - chrome canary 60 - Firefox 53.0.3 - opera 45.0 - IE 11,9,8 移动端的浏览器测试暂时未测试,有时间加上 之前偶尔有一次要更改伪类元素 ::after 的样式的时候看到过 getComputedStyle 方法,但是并没有在
2017-06-16 00:07:08
16009
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人