如何从流中删除元素? [英] How to remove an element from the flow?

查看:75
本文介绍了如何从流中删除元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道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?

这篇关于如何从流中删除元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆