我有这个布局,我正在努力实现。基本上类似于Facebook的消息(facebook.com/messages
)
我一直在这里尝试,但运气不好:https://jsfiddle.net/3nd0b17m/23/
基本上屏幕部分滚动条应该结束在屏幕的最后,现在进一步下降。有人能帮我实现这一点吗?
我有这个布局,我正在努力实现。基本上类似于Facebook的消息(facebook.com/messages
)
我一直在这里尝试,但运气不好:https://jsfiddle.net/3nd0b17m/23/
基本上屏幕部分滚动条应该结束在屏幕的最后,现在进一步下降。有人能帮我实现这一点吗?
1条答案
按热度按时间rjee0c151#
我将如何去做这件事,是使侧边栏的位置固定,以确保它停留在很好的地方,而你滚动页面的其余部分。
下面是一个更新的小提琴:https://jsfiddle.net/odukje08/3/
祝你好运!
编辑:我在侧边栏中添加了一些flex属性,使其React更灵敏,并且始终具有正确的高度。