How to move an element after another element using JS or jquery?

前端 未结 3 578
臣服心动
臣服心动 2020-12-15 17:03

I would like to move one DIV element beside another, it is normally like this:

3条回答
  •  情歌与酒
    2020-12-15 17:44

    's are block-level elements so that's their natural behavior. You could float the div's and then clear them, or use display: inline.

    I think this link would help you understand a bit more though:

    CSS block and inline

提交回复
热议问题