---
title: "Discussion on \"使用flex布局实现滚动的效果-不用计算高度\" | Hashnode"
description: "Discussion on \"使用flex布局实现滚动的效果-不用计算高度\". <div class=\"meta-container flex flex-col\">\n  <div class=\"search-input p-[10px]\">\n    <search-input />\n  </div>\n  <div class=\"body flex-1 min-h-0\">\n      <div class=\"max-h-[100%] overflow-y-auto\">\n        <div v-for=\"item in 60\" :key=\"item\">\n         ..."
url: "https://hashnode.com/posts/flex/64f04bc154cebe4535befbb7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [使用flex布局实现滚动的效果-不用计算高度](https://zmblog.hashnode.dev/flex?utm_source=hashnode&utm_medium=feed)

<div class="meta-container flex flex-col"> <div class="search-input p-\[10px\]"> <search-input /> </div> <div class="body flex-1 min-h-0"> <div class="max-h-\[100%\] overflow-y-auto"> <div v-for="item in 60" :key="item"> ...

Aug 31, 2023 · 1 min read · zmblog.hashnode.dev  
Read the article

-   [#flex-css](https://hashnode.com/tag/flex-css)

## Written by

[明](https://hashnode.com/@zm144)

@zm144

  
[View profile](https://hashnode.com/@zm144)

learn

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
