什么是CSS属性从正常流中获取元素? [英] What are the CSS properties that get elements out of the normal flow?

查看:140
本文介绍了什么是CSS属性从正常流中获取元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是CSS属性,从正常流中获取元素?
这样的属性将是float,position:absolute等。

What are the CSS properties that get elements out of the normal flow? Such properties would be float, position:absolute etc.

这个问题涉及正常流程的所有可能的更改。

This question relates to all the possible alterations of the normal flow.

推荐答案

只有以下属性更改标准元素的流程:

Only the following properties change the standard element's flow:


  • float:right | left

  • position:absolute | fixed

  • float: right|left
  • position: absolute|fixed

只是为了完整性:


  • position:relative 不会更改元素的流动顺序,而是相对于正常流动位置更改元素位置。

  • display:none 删除流的元素(严格来说,它不会改变元素流顺序,因为元素根本不会有流顺序)

  • visibility:hidden 会维护流程上的元素,但不会显示它。

  • position: relative does not change the flow order of the element, but changes the element position relative to the normal flow position.
  • display: none removes the element of the flow (strictly speaking it does no change the element flow order because the element will not have a flow order at all)
  • visibility: hidden will maintain the element on the flow but will not display it.

这篇关于什么是CSS属性从正常流中获取元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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