gpt4 book ai didi

html - 修复了我的窗口滚动条上的 div

转载 作者:太空宇宙 更新时间:2023-11-04 03:24:44 24 4
gpt4 key购买 nike

我的问题是我在页面底部固定了带有免责声明等的 div。

这个 DIV 与垂直滚动条重叠,所以我删除了父元素的溢出部分。

现在可以了,但是我需要父元素的溢出才能在滚动页面时看到更多内容。

有人可以帮助我吗?

最佳答案

看看这个: jsfiddle

#scrollable
{
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 2;
margin:0;
padding:0;
}

div.bottom
{
background-color: #fa0000;
position: fixed;
bottom: 0%;

/*height: 10%;*/
height: 80px;
width: 100%;
margin:0;
padding:0;
z-index:9999;
}

div.test
{
border-radius: 10px 10px 10px 10px;
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
position: absolute;
top : 10px;
background: #000000;
height: 1500px;
width: 100%;
margin-bottom: 80px;
margin:0;
padding:0;
}

关于html - 修复了我的窗口滚动条上的 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27268423/

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