box invalid property value

I use

display:-moz-box

Its work on firefox truly but "invalid property value" on chrome, what should i do now?
Thanks


Any CSS code that starts with a hyphen is a browser-specific feature (it also often means the feature is experimental and not yet ready for a full release).

Only the browser that uses that extension ( -moz- is for Firefox) will work with that property. Other browsers may need their own prefix specified instead (eg -webkit- for Webkit-based browsers, or -ms- for IE).

You should also specify the unprefixed version of the style if it has been standardised, as the experimental prefix is likely to be removed from future browser versions once the standard version is established.

In this particular case, we are talking about the flexbox feature. There has been quite a bit of change to the specs for this over time as it has gone through the standardisation process, so some browsers may support non-standard syntax. This makes it slightly harder to give a succinct answer here, so rather than go into great detail, I'll point you to some articles that may help:

  • http://css-tricks.com/snippets/css/a-guide-to-flexbox/
  • https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Flexible_boxes

  • 使用display:-webkit-box进行镶边


    -moz- is a vendor prefix. Vendor prefixes are unique to the browser. They are used to apply non-standard CSS. -moz- is for Mozilla Firefox. -webkit- is for chrome.

    链接地址: http://www.djcxy.com/p/75618.html

    上一篇: Chrome CSS显示器的等同物:

    下一篇: 框无效的属性值