📜  具有可变高度的溢出滚动条 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:46.198000             🧑  作者: Mango

代码示例1
/* The element which contains one/many content sections */
.container {
  display: flex;
  flex-direction: column;
}

/* The container's content you want to add an overflow to */
.container .scrollable-content {
  flex-grow: 1;  
  overflow: auto;
}