---
title: "Discussion on \"css 的 height: auto 不要忘記使用！\" | Hashnode"
description: "Discussion on \"css 的 height: auto 不要忘記使用！\". 這是讓 container 可以依據裡面元素長高的輕鬆方法，忘記用這個讓我搞了一小時，筆記一下。"
url: "https://hashnode.com/posts/css-height-auto/6629ff060e230a3bada5ce19"
---

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

Discussion

# [css 的 height: auto 不要忘記使用！](https://sunpochin.hashnode.dev/css-height-auto?utm_source=hashnode&utm_medium=feed)

這是讓 container 可以依據裡面元素長高的輕鬆方法，忘記用這個讓我搞了一小時，筆記一下。

Apr 19, 2024 · 1 min read · sunpochin.hashnode.dev  
Read the article

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

## Written by

[Sun Pochin](https://hashnode.com/@sunpochin)

@sunpochin · Taipei, Taiwan

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

Developer, building thins on web.

I was the main web front-end engineer responsible for developing and maintaining the customer-facing platform for WisdomHall (品學堂) in 2024 Q3 Q4, code reviewed by CTO and a senior engineer. http://learning.wisdomhall.com.tw has total active 257k users, according to their Facebook post: https://www.facebook.com/share/p/1MnjbwZxCV/ My tech stack includes JavaScript, Vue 2, Nuxt 2, git, and Docker.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
