* { margin:0; padding:0; } .small_box { width:180px; height:180px; margin-left:10px; margin-top:10px; position:relative; } .small_box img { width:180px; height:180px; } .small_box .mask { position:absolute; width:100%; height:100%; background:rgba(0,0,0,0.5); opacity:0; z-index:2; cursor:move; } .small_box .float_layer { position:absolute; width:50px; height:50px; background:rgba(0,0,0,0.5); display:none; } .big_box { position:absolute; left:200px; top:10px; width:250px; height:250px; overflow:hidden; display:none; } .big_box img { position:absolute; }