#box { width:100px; height:100px; background-color:aquamarine; position:absolute; } #father { width:600px; height:500px; background-color:rgb(226,117,184); position:relative; } img { width:100%; height:100%; cursor:move; } #scale { width:10px; height:10px; overflow:hidden; cursor:se-resize; position:absolute; right:0; bottom:0; background-color:rgb(122,191,238); }
//box是装图片的容器,fa是图片移动缩放的范围,scale是控制缩放的小图标