如何将元素移动到另一个元素?

佐手、 提交于 2020-10-28 02:43:30

问题:

I would like to move one DIV element inside another. 我想将一个DIV元素移到另一个元素中。 For example, I want to move this (including all children): 例如,我想移动它(包括所有孩子):

<div id="source">
...
</div>

into this: 进入这个:

<div id="destination">
...
</div>

so that I have this: 所以我有这个:

<div id="destination">
  <div id="source">
    ...
  </div>
</div>

解决方案:

参考一: https://stackoom.com/question/5MyT/如何将元素移动到另一个元素
参考二: https://oldbug.net/q/5MyT/How-to-move-an-element-into-another-element
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!