2013年1月14日
摘要: 使用jQuery获取位置以及大小信息的时候,碰到一个问题:map area取不到offset,width,height等Box模型的数据,查阅了map area的定义后,写了一个兼容的方法,贴在这里给有需要的人,如下:var getMapAreaBox = function (area) { // parse var ret = { left: 0, top: 0, width: 0, height: 0 }; var shape = area.attr('shape').toLowerCase(), coords = area.attr('coords').s 阅读全文
posted @ 2013-01-14 14:11 rulee 阅读(1121) 评论(0) 推荐(0) 编辑