计算:l/(oS.offsetWidth-oM.offsetWidth)=?/(oImg.offsetWidth-oB.offsetWidth)
? = l/(oS.offsetWidth-oM.offsetWidth)*(oImg.offsetWidth-oB.offsetWidth);
瑕疵 挡在IE中 会出现来回闪动拖拽 :所以在onmouseover的时候改成onmouseenter
onmouseout改成onmouseleave
计算: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
网友评论