Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问放大缩小后,双击怎么让图片回复默认状态 #108

Open
ZhuRuiHeng opened this issue Apr 25, 2018 · 0 comments
Open

请问放大缩小后,双击怎么让图片回复默认状态 #108

ZhuRuiHeng opened this issue Apr 25, 2018 · 0 comments

Comments

@ZhuRuiHeng
Copy link

我放大缩小后,doubleTap方法里边设置宽高起始点,不起作用
doubleTap: function (evt) {
console.log('doubleTap',evt.target.id.charAt(evt.target.id.length-1,1));
let nowId = evt.target.id.charAt(evt.target.id.length-1,1);
// alert(list[nowId].x);
document.getElementById("rotateImg"+nowId+"").style.left=list[nowId].x+"rem";
document.getElementById("rotateImg"+nowId+"").style.top=list[nowId].y+"rem";
document.getElementById("rotateImg"+nowId+"").style.width=list[nowId].width+"rem";
document.getElementById("rotateImg"+nowId+"").style.height=list[nowId].height+"rem";
alert($("#rotateImg"+nowId+"").css('height'));

                // $('.img').css('z-index','6');
            },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant