在colorbox中更改div-order? [英] change div-order in colorbox?
本文介绍了在colorbox中更改div-order?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否可以更改 colorbox 中的div顺序?我只是问,因为cboxTitle-div是在cboxContent-div。但是我想把cboxTitle-div放在colorbox-div里面。
I'd like to know if it's possible to change the div-order in colorbox? I just ask because the cboxTitle-div is inside of the cboxContent-div. But I want the cboxTitle-div to be inside of the colorbox-div.
从这里...
<div id="cboxContent">
<div id="cboxTitle"></div>
</div>
...
<div id="colorbox">
<div id="cboxTitle"></div>
<div id="cboxContent"></div>
</div>
任何人都可以帮助我解决这个问题,还是有人知道另一个选择吗? TIA。
Can anyone help me out with this problem or does anyone know another alternative? TIA.
推荐答案
您可以编写一行jQuery来解决这个问题并移动元素:
You can write one line of jQuery that would solve this and move the element:
$("#cboxTitle").appendTo("#colorbox");
这篇关于在colorbox中更改div-order?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文