读书人

火狐兼容getBoundingClientRect有关问

发布时间: 2013-09-28 10:01:20 作者: rapoo

火狐兼容getBoundingClientRect问题
最近开发中遇到这么个兼容大问题,项目比较复杂,所以我将问题核心抽离出来。
如下:


火狐兼容getBoundingClientRect有关问题火狐兼容getBoundingClientRect有关问题
火狐兼容getBoundingClientRect有关问题

请问大虾们怎么破? 兼容 火狐 range
[解决办法]
直接用
var boundTest = span_doms[i].getBoundingClientRect();

读书人网 >JavaScript

热点推荐