美文网首页
放大镜的比例计算

放大镜的比例计算

作者: 老于头子 | 来源:发表于2017-10-17 16:17 被阅读0次

计算:l/(oS.offsetWidth-oM.offsetWidth)=?/(oImg.offsetWidth-oB.offsetWidth)

? = l/(oS.offsetWidth-oM.offsetWidth)*(oImg.offsetWidth-oB.offsetWidth);

瑕疵 挡在IE中 会出现来回闪动拖拽 :所以在onmouseover的时候改成onmouseenter

                                                          onmouseout改成onmouseleave

相关文章

网友评论

      本文标题:放大镜的比例计算

      本文链接:https://www.haomeiwen.com/subject/tivruxtx.html