css "position:fixed; overflow:auto;"错误的底部填充

标签 css overflow fixed

页面固定在右侧并放置在标题下方。 jsfiddle exapmle看起来像我想要的那样,但滚动条超出了屏幕的边缘。如何解决这种情况?

  position:fixed;
  top:120px;
  bottom:0;
  padding-bottom:120px;
  overflow:auto;
  height: 100%

jsfiddle exapmle of use

最佳答案

删除 .main-body-grid > .grid-left、.main-body-grid > .grid-right 上的 height:100% .main-body-grid > .grid-left 对我有用

关于css "position:fixed; overflow:auto;"错误的底部填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27656757/

相关文章:

javascript - 检查 Javascript 是否存在滚动条?

ios - 固定定位元素在页面卸载时消失

css - 具有固定元素的 z-index

javascript - Dojo 中 jQuery .css() 的替代方案

html - 为什么应用 CSS 过滤器会阻止包含的链接?我可以解决这个问题吗?

html - 如何添加溢出: hidden and max widths on images

带有固定标题的 HTML 表格

javascript - 动画 css 效果 - JQuery

javascript - 我如何让图像像在谷歌相册 View 中那样流动

html - 固定位置第一个列表项,滚动条自动调整宽度