我可以仅设置“ n n&quot”在弹性容器中可见的行数?
我有一个带有以下CSS的容器:
.container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
是否有任何方法可以将其限制为仅显示n行,而其余行未显示?我想避免设置固定高度,因为容器中的元素可能具有不同的高度(这可能导致不同的行是不同的高度)。
I have a container with the following CSS:
.container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
Is there any way to limit it to only displaying N rows, with the remaining rows not showing? I'd like to avoid setting a fixed height, as the elements in the container have potentially differing heights (which might lead to different rows being different heights).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
那是你的意思吗?请问,如果我错了。
Is that what you meant?. excuse me if I got it wrong.