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

标签 html css

这里是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/

相关文章:

html - CarouFredSel - 使用 div

php - Magento header childhtml 下拉列表

css - 为什么我的字体在 IE9 中看起来好多了?

css - 为什么 YUI Compressor 不最小化带有负单位值的 CSS 规则中的前导零(对于 float )?

php - 使用 PHP 和 jQuery 使用单选按钮进行测验

javascript - 基于流程的编程 js html ui

css - 如何使我的整个网页居中,包括背景

javascript - 试图在井字游戏中设置一个 Action ,但是当我回调该函数时我一直未定义

html - float div 重叠 msie

css - 在 1-st 和 4-th 25% inline-block 之间需要空格