flex value
flex value
<flex>网格容器,其被声明为与单元尺寸内的柔性长度fr。
实例
1fr /* Using an integer value */
2.5fr /* Using a float value */
规范
Specification | Status | Comment |
---|
CSS Grid LayoutThe definition of '<flex>' in that specification. | Candidate Recommendation | Initial definition |
浏览器兼容性
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|
Basic support | No support1 | 20 (12.10240) | No support2 | 10.0 | No support1 | Nightly build |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|
Basic support | No support | No support2 | 10.0 | No support | No support |