显示:flex - 在 Firefox 21 中不起作用 [英] display: flex - not working in firefox 21

查看:14
本文介绍了显示:flex - 在 Firefox 21 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据这篇文章display:flex 属性在 firefox 21 中应该可以在没有任何前缀的情况下工作.但是,即使我在值之前使用 -moz-,它也不会被 HTML 解析器识别.

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.

在使用 Web 开发人员工具时,我可以看到以下警告和错误:

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] Error in parsing value for 'display'.  Declaration dropped. @ `http://localhost/index.css:7`

[10:23:04.712] Unknown property 'flex-flow'.  Declaration dropped. @ `http://localhost/index.css:8`

[10:23:04.712] Error in parsing value for 'display'.  Declaration dropped. @ `http://localhost/index.css:16`

[10:23:04.712] Error in parsing value for 'display'.  Declaration dropped. @ `http://localhost/index.css:17`

[10:23:04.712] Error in parsing value for 'display'.  Declaration dropped. @ `http://localhost/index.css:22`

[10:23:04.712] Unknown property 'justify-content'.  Declaration dropped. @ `http://localhost/index.css:41`

[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.

要启用它,请在 url 字段中输入 about:config,搜索 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 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆