我有以下结构:
<div id="camera_wrap">
<div data-src="Slider-Image-1.jpg" class="test"></div>
<div class="camera_caption fadeFromBottom">a</div>
<div data-src="Slider-Image-2.jpg" class="test"></div>
<div class="camera_caption fadeFromBottom">b</div>
<div data-src="Slider-Image-3.jpg" class="test"></div>
<div class="camera_caption fadeFromBottom">c</div>
</div>
我必须将带有 class="camera_caption" 的 div 移动到父 div 中,如下所示:
<div id="camera_wrap">
<div data-src="Slider-Image-1.jpg" class="test"><div class="camera_caption fadeFromBottom">a</div></div>
<div data-src="Slider-Image-2.jpg" class="test"><div class="camera_caption fadeFromBottom">b</div></div>
<div data-src="Slider-Image-3.jpg" class="test"><div class="camera_caption fadeFromBottom">c</div></div>
</div>
我怎样才能做到这一点?
马里奥