gpt4 book ai didi

html - 单个 HTML 元素在另一个元素开头的位移

转载 作者:行者123 更新时间:2023-11-28 12:26:38 25 4
gpt4 key购买 nike

看看我的问题: enter image description here

如何在打开弹出窗口时让页脚向下移动?

这里有一些CSS:

#advanced_search_div_body {
height: 100%;
width: 817;
margin: 0 auto;
padding: 0;
display: table;
background-color: white;
}

#foot {
padding: 30px 0px;
background-color: black;
clear: both;
position: relative;
bottom: 0;
width: 100%;
overflow: hidden;
z-index: 2;

}

最佳答案

可能您需要告诉页脚位于页面下方。

所以,基本上改变#foot position: relative to absolute。试试这个:

position:absolute;
width:100%;
bottom:0px;

或者类似的东西:

position:fixed;
bottom:0;
width:100%;

关于html - 单个 HTML 元素在另一个元素开头的位移,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18489844/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com