本文介绍了为什么Visual Studio 2013识别CSS3显示:flexbox,但不是flex?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的CSS页面上Visual Studio不识别flex,声称它无效:

  div {
显示:flex;
display:inline-flex;
}

但它能识别flexbox:

  div {
display:flexbox;
display:inline-flexbox;
}

在任何主要浏览器中似乎都不支持Flexbox,是。

解决方案

VS2013需要已安装,这将修复CSS验证


On my CSS pages Visual Studio doesn't recognize flex, claiming it's not valid:

div {
    display: flex;
    display: inline-flex;
}

It does however recognize flexbox :

div {
    display: flexbox;
    display: inline-flexbox;
}

Flexbox does not seem to be supported in any of the main browsers, yet flex is. Can anyone explain this?

Thanks.

解决方案

VS2013 needs to have Update 5 installed and that will fix the CSS validation issue.

这篇关于为什么Visual Studio 2013识别CSS3显示:flexbox,但不是flex?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 04:50