摘要: //元素到顶部左侧的距离 elem: DOM对象 type:top,left function getElementDistance (elem,type){ var offset; switch(type){ case 'top': offset='offsetTop'; break; case 'l... 阅读全文
posted @ 2018-07-31 16:47 yuesu 阅读(4202) 评论(0) 推荐(0)