sách gpt4 ai đã đi

Div cha div không chứa div con

In lại 作者:行者123 更新时间:2023-11-28 04:22:46 27 4
mua khóa gpt4 Nike

我有这样的东西:


<---some content here -->





Hiện nay,#page 中没有任何格式。它适用于一些内容,我的意思是,当内容更大时,#page 也有更高的高度。但是,当今天我在其中应用 #container 时,它位于 tuyệt đối 中,并且其中有一个 #child nằm trong >relative,似乎 #container Không có sẵn #page 内 - 这意味着如果 #container 增长, 的高度>#page 没有改变,为什么?

1 Câu trả lời

绝对定位的元素从文档的正常流中移除,导致它们在高度增加时不会增加其父元素的高度。

Elements that are positioned relatively are still considered to be in the normal flow of elements in the document. In contrast, an element that is positioned absolutely is taken out of the flow and thus takes up no space when placing other elements. Full Text

关于html - Div 父 div 不包含子 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14294887/

27 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com