Swap elements using CSS?

前端 未结 6 929
醉酒成梦
醉酒成梦 2021-01-18 16:36

I have fairly simple layout, like this:

1
2
6条回答
  •  南方客
    南方客 (楼主)
    2021-01-18 17:07

    If you know the height of the element, you can use position: relative (with positive and negative values, respectively) or position: absolute. But this is all very hacky and comes with a lot of side-effects - I would do it in Javascript instead.

提交回复
热议问题