Swap elements using CSS?

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

I have fairly simple layout, like this:

1
2
6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-18 17:07

    No, you can't. Even if you decided to try to "hack" it out in CSS, the resultant CSS would be huge, messy, and not easily maintained. The corresponding jQuery code would be very simple by comparison, easily understood, and easily maintained.

提交回复
热议问题