如何从流中删除元素?

问题描述:

我知道position: absolute将从流中弹出一个元素,并且它停止与其邻居交互.

I know position: absolute will pop an element from the flow and it stops interacting with its neighbors.

还有什么其他方法可以实现这一目标?

What other ways are there to achieve this?

没有?

我的意思是,除了完全用display: none从布局中删除它之外,我很确定就是这样.

I mean, other than removing it from the layout entirely with display: none, I'm pretty sure that's it.

您是否遇到无法使用position: absolute解决方案的特殊情况?

Are you facing a particular situation in which position: absolute is not a viable solution?