Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
196 views
in Technique[技术] by (71.8m points)

鼠标无法下滑到页面最底部

前端同事走了,留个烂摊子,js还能稍微搞定,css可把我这后端仔搞懵了,太魔幻了,求各位前端大佬帮忙。
image.png
image.png

页面Body的css如下:

#bodyContent{
   width: 99%;
   height: 99%;
   padding: 10px 5px !important;
   overflow-y: scroll;
   max-height: 1024px;
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)

从bodyContent这个元素开始,一直往上找父级div,直到body元素,中间看看是不是某个div设置了固定高度,有设置的话,都改成height: 99%...
或者把所有的height: 99%都去掉,直接在body元素上面写overflow-y: scroll


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
...