Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法将 CSS 元素(在这种情况下为 div)设置为某个高度,除非其中的内容导致它更大?我有一个 CSS 布局,我希望我的“内容”div 至少有 600px 高,但是是否有 700px 的内容,允许它被扩展。
div { min-height: 600px; }