gpt4 book ai didi

html - 如何设置右侧容器在它自己的位置滚动

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

这里是my site的链接.我想要正确的容器滚动到位。我怎样才能做到这一点?我尝试将 position: fixed 添加到右列,但这会破坏布局。现在,溢出总是一直滚动到顶部。基本上我希望 insta-shop-grid 在容器本身内滚动。

最佳答案

我把它编辑成内联样式

看看有没有效果。将它们添加到一个类中。

<div class="directory-container container" style="
max-height: 400px;
z-index: 1111111;
overflow: scroll;width: 100%;
margin-top: 361px;

">

并添加<body style="overflow:none">

但是网站确实需要一些响应式设计。我使用 400px 和 360 作为边距,因为填充已经存在。 :) 我仍然希望这会起作用

关于html - 如何设置右侧容器在它自己的位置滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19078858/

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