试图一般学习CSS和逆风,并在高度上挣扎。
https://jsfiddle.net/7f6cd1bx/
我在上面制作了一个 https://tailwindcomponents.com/component/new-telegram-web-web-web-clone
要滚动到聊天列表的底部,最后一张卡只会部分显示。我希望它完全显示。
根据我可以解释的内容,聊天列表设置为 100VH
,因此它溢出并配置为隐藏。我不确定如何使其适合给定的高度。
我真正感到困惑的是,垂直滚动条是为了处理不适合的内容,但是现在垂直的卷轴本身无法适合给定的空间。
感谢任何帮助。谢谢你!
Trying to learn CSS and Tailwind in general and struggling with height.
https://jsfiddle.net/7f6cd1bx/
I made a code pen above based off this https://tailwindcomponents.com/component/new-telegram-web-clone
If I were to scroll to the bottom on the list of chats, the last card only shows up partially. I would like it to show completely.
Based on what I can interpret, the list of chats section is set to 100vh
, as a result it overflows and was configured to hide it. I'm not sure how to get it to fit the given height.
What I'm really confused is, the vertical scrollbar is meant to deal with content that cannot fit, but now the vertical scrollbar itself cannot fit in the given space.
Appreciate any help. Thank you!
发布评论
评论(1)
显示:flex;
正确地被显示:block
适当地为此< div; div>
元素:尝试添加类
左-side-wrap
到此< div>
之后添加此CSS代码以确保
< div>
将具有display:display: flex;
正确:在这里您可以检查更新的JS小提琴:
https://jsfiddle.net/j1rbv7un/
display: flex;
properly has been overrided bydisplay:block
properly for this<div>
element:try to add class
left-side-wrap
to this<div>
and after that add this CSS code to make sure that
<div>
will havedisplay:flex;
properly:Here you can check an updated Js fiddle:
https://jsfiddle.net/j1rbv7un/