摘要: 1. getBoundingClientRect用于获取某个元素相对于视窗的位置集合。集合中有top, right, bottom, left等属性。 语法:这个方法没有参数 rectObject = object.getBoundingClientRect(); 返回值类型:TextRectang 阅读全文
posted @ 2017-11-01 14:41 MiniDuck 阅读(1155) 评论(0) 推荐(0) 编辑