摘要: 1、getBoundingClientRect的作用 getBoundingClientRect用于获取某个html元素相对于视窗的位置集合。 执行 object.getBoundingClientRect();会得到元素的top、right、bottom、left、width、height属性,这 阅读全文
posted @ 2016-08-19 16:51 流放的可乐 阅读(1924) 评论(0) 推荐(0) 编辑