我需要修改DOM以在元素内移动figcaption。我尝试这样的事情,但没有工作:
$('.wp-caption-text.gallery-caption').insertAfter('img.attachment-full');

这是我的代码:
<figure class="gallery-item">
<div class="gallery-icon landscape">
<a href="#" class="fancybox image" rel="gallery-0"><img src="#" class="attachment-full"></a>
</div>
<figcaption class="wp-caption-text gallery-caption" id="gallery-1-365">
<h2>GILLES HERZOG</h2>
</figcaption>
</figure>
&#13;
有什么想法吗? 非常感谢!