Rotate the inner box as I rotate the outer box
问题 I have two boxes inside a box-wrapper . As I rotate the box, the inner box should also rotate. But, the problem is, the inner box doesn't rotate. Note: I have to make both boxes be position:absolute as siblings. <div class="box-wrapper"> <div class="inner"> RED BOX </div> <div class="box"> </div> </div> Please check the complete code below: https://jsfiddle.net/1p9b0q5c/2/ 回答1: Change your code like as follows, $(function() { // Prepare extra handles var nw = $("<div>", { class: "ui-rotatable