利用较新的 Flexbox API 和 HTML 在全高应用中实现 Flexbox 和垂直滚动
flex 属性是 flex-grow、flex-shrink 和 flex-basis 属性的简写。flex 属性在可变项上设置可变长度。
例如 -
#container article {
-webkit-flex: 1 1 auto;
overflow-y: auto;
height: 0px; /*here the height is set to 0px*/
}如果您想设置最小高度,可以使用 height: 100px;,它与 min-height: 100px; 完全相同;
#container article {
-webkit-flex: 1 1 auto;
overflow-y: auto;
height: 100px; /*here the height is set to 100px*/
}
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP