Kev*_*vin 1 html css html5 css3 flexbox
根据这篇文章,该display:flex
属性应该在firefox 21中没有任何前缀.但是,即使我-moz-
在值之前使用它,它也不会被HTML解析器识别.
我尝试卸载firefox 20并重新安装firefox 21,最近希望它可以正常工作,但事实并非如此.
使用Web开发人员工具时,我可以看到以下警告和错误:
[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`
Run Code Online (Sandbox Code Playgroud)
这些不是所有的错误,而是一些.任何人都可以指出问题是什么?
提前致谢!
display: flex
目前仅支持Firefox中的运行时标志.
要启用它,请在url字段中输入about:config,搜索flexbox,并将其设置为true.
默认情况下,它在Firefox Nightly中启用,因为它是一个非稳定版本.
它将在Firefox 22中默认启用,前提是该功能已准备好发货.