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

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

问题描述

我知道position:absolute会从HTML / CSS流中弹出一个元素,并停止与其邻居的交互。




b

>我的意思是,除了从布局中删除它完全与 display:none ,我很确定是它。



您是否面对 position:absolute 不是可行解决方案的特殊情况?


I know "position: absolute" will pop an element from the "flow of HTML/CSS" and it stops interacting with its neighbors. What other ways are there to achieve this?

解决方案

None?

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

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

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

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