问题描述
根据, display:flex
属性应该在firefox 21中没有任何前缀。但是,即使我在 -moz -
According to this article, the display:flex
property should work without any prefix in firefox 21. But, even if I use -moz-
before the value, it is not being recognized by the HTML parser.
我尝试卸载firefox 20并重新安装firefox 21最近希望它能工作,但它不工作。
I tried uninstalling firefox 20 and reinstalling firefox 21 recently hoping it would work, but it doesn't.
使用网络开发者工具时,我会看到以下警告和错误:
When using the web developer tools, I can see the following warnings and errors:
[10:23:04.673] The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. @ `http://localhost/index.php`
[10:23:04.712] Error in parsing value for 'display'. Declaration dropped. @ `http://localhost/index.css:6`
[10:23:04.712]解析display的值时出错。声明下降。 @ http://localhost/index.css:7
[10:23:04.712] Error in parsing value for 'display'. Declaration dropped. @ http://localhost/index.css:7
[10:23:04.712]柔性流。声明下降。 @ http://localhost/index.css:8
[10:23:04.712] Unknown property 'flex-flow'. Declaration dropped. @ http://localhost/index.css:8
[10:23:04.712]值显示。声明下降。 @ http://localhost/index.css:16
[10:23:04.712] Error in parsing value for 'display'. Declaration dropped. @ http://localhost/index.css:16
[10:23:04.712]值显示。声明下降。 @ http://localhost/index.css:17
[10:23:04.712] Error in parsing value for 'display'. Declaration dropped. @ http://localhost/index.css:17
[10:23:04.712]值显示。声明下降。 @ http://localhost/index.css:22
[10:23:04.712] Error in parsing value for 'display'. Declaration dropped. @ http://localhost/index.css:22
[10:23:04.712] justify-content'。声明下降。 @ http://localhost/index.css:41
[10:23:04.712] Unknown property 'justify-content'. Declaration dropped. @ http://localhost/index.css:41
[10:23:04.712]柔性'。声明丢失。 @ http://localhost/index.css:109
[10:23:04.712] Unknown property 'flex'. Declaration dropped. @ http://localhost/index.css:109
这些不是全部错误,任何人都可以指出问题是什么?
Those are not all the errors but some. Can anyone point out what the problem is?
提前感谢!
推荐答案
display:flex
目前仅支持Firefox中的运行时标志。
display: flex
is currently only supported behind a runtime flag in Firefox.
about:config在url字段中,搜索flexbox并将其设置为true。
To enable it, enter about:config in the url field, search for flexbox, and set it to true.
它默认情况下在Firefox Nightly中启用,因为它是一个不稳定的版本。
It is enabled by default in Firefox Nightly, as it is a non-stable version.
这是因为默认情况下在Firefox 22中启用,只要该功能可以发货。
It is due to be enabled by default in Firefox 22, providing the feature is ready to ship.
这篇关于显示:flex - 不工作在firefox 21的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!