auto 不是 flex-flow 值

auto is not a flex-flow value

有代码:

.vc_tta-panels-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

但在 W3C 验证中出现以下错误:

auto is not a flex-flow value : 1 1 auto

flex: 1 1 auto是标准的,如spec:

所说

flex: auto. Equivalent to flex: 1 1 auto. Sizes the item based on the width/height properties, but makes them fully flexible, so that they absorb any free space along the main axis.

您可以忽略该错误,这是验证器的错误。或者,使用等效的 flex: auto,它被认为是有效的。