Replies: 1 comment
-
解决方案,只需修改 parent 的 css 即可。
.parent {
max-height: 300px;
overflow: hidden;
display: flex;
flex-direction: column;
} 参考资源 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
当滚动内容高度小于 300px 时,父容器高度等于滚动容器高度;当滚动容器高度大于 300px 时,滚动容器应该滚动,但是以下实现未滚动,应该如何解决?
CodePen Demo
Beta Was this translation helpful? Give feedback.
All reactions