gpt4 book ai didi

css - 位置固定且top>0时的隐藏内容

转载 作者:太空宇宙 更新时间:2023-11-03 23:28:46 25 4
gpt4 key购买 nike

Here is my example如果您尝试向下滚动,您将只能看到一些内容,而您无法查看最后几行。我该如何解决这个问题?

div#scrollable {
overflow-y: scroll;
height: 100%;
position: fixed;
top: 100px;
}

我需要:

  • 固定div;
  • 从顶部偏移一些值;

谢谢

最佳答案

尝试以下操作:

div#scrollable {
overflow-y: scroll;
position: fixed;
top: 100px;
bottom: 0;
width: 100%;
}

查看演示:http://jsfiddle.net/audetwebdesign/a8dxhLra/

关于css - 位置固定且top>0时的隐藏内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25935584/

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