IE10.0浏览器画图时window.event.y显示不正确bug

广告:

IE10.0浏览器画图时window.event.y显示不正确bug

x = (this.isMSIE) ? (window.event.x - this.pic.offsetLeft) : (e.pageX - pos.x);

y = (this.isMSIE) ? (window.event.y - this.pic.offsetTop) : (e.pageY - pos.y);

以上改成下面:

if (this.isMSIE10_0)

{

/*

x = window.event.x- pos.x;

y = window.event.y- pos.y;

*/

x = window.event.clientX + document.documentElement.scrollLeft - pos.x;

y = window.event.clientY + document.documentElement.scrollTop - pos.y;

}

else

{

x = (this.isMSIE) ? (window.event.x - this.pic.offsetLeft) : (e.pageX - pos.x);

y = (this.isMSIE) ? (window.event.y - this.pic.offsetTop) : (e.pageY - pos.y);

}

广告:

编辑:Admin 时间:2013/4/5 14:13:49 阅览:1133   返回    
IE10
画图
扫描关注53BK报刊官网
扫描关注阅速公司微信