getBoundingClientRect 获取某个元素信息

getBoundingClientRect()   获取某个元素信息,主要包括left right top bottom width height,返回值为一个对象。

posted @ 2017-05-22 00:04  又年  阅读(130)  评论(0编辑  收藏  举报