是否浏览器的渲染回流,如果元素的位置是绝对的? [英] Does the browser's render reflow if element's position is absolute?

查看:636
本文介绍了是否浏览器的渲染回流,如果元素的位置是绝对的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有绝对位置的元素,我改变它的左边和顶部位置将回流到它的父的孩子吗?如果他们不影响它的自己的孩子什么,因为他们也绝对位置由左边和顶部轴?

If I have an element with an absolute position and I change it's left and top position will reflow to it's parent children? and what about it's own children if they are not affected as they are also absolute positioned by left and top axis?

如果我更改元素的宽度/高度,但在父母和无关紧要它的孩子?

If I change an element's width/height but have no importance in the parent and in it's children?

推荐答案

与绝对位置不影响页面布局的对象。该页面布局没有一个绝对的定位对象方面。移动绝对定位的对象不会导致其他对象的任何回流。

An object with absolute position does not affect the layout of the page. The page is laid out without regard for an absolute positioned object. Moving the absolute positioned object does not cause any reflow of other objects.

移动绝对定位的对象会导致它的子对象也会随之移动。它不会回流他们,他们会只是与父容器待着。

Moving an object with absolute positioning will cause it's child objects to move along with it. It will not reflow them, they will just move along with their parent container.

这篇关于是否浏览器的渲染回流,如果元素的位置是绝对的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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