如果我得到这个正确,你想在前端旋转图像并且对实际操作图像不感兴趣。
您可以使用 CSS3 变换来旋转图像,如下所述http://www.w3schools.com/cssref/css3_pr_transform.asp
HTML
<img class="exampleImage" src="http://www.corbisimages.com/images/Corbis-42-18522637.jpg?size=67&uid=c7ebc105-b4a4-4fad-8e7d-99ff79ac2ce4" height="300px"/>
<input type="range" min="-180" max="180" step="1" value="0" id="rotationAngle">
JavaScript
jQuery('#rotationAngle').on('mouseup', function(){
jQuery('.exampleImage').css(
'-webkit-transform', 'rotate(' + jQuery('#rotationAngle').val() + 'deg)',
'transform', 'rotate(' + jQuery('#rotationAngle').val() + 'deg)');
});
这是小提琴供您参考。