search

Home  >  Q&A  >  body text

css3 - flex现在的兼容性如何

老是看到有人说flex兼容不好,但是can i use 的数据除了ie8低版本不支持,其他还好,那么flexbox在移动端的支持情况如何呢,了解的人说下

ringa_leeringa_lee2785 days ago607

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-17 11:43:08

    Can i use doesn’t have mobile data? http://caniuse.com/#feat=flexbox

    If you want good compatibility, just use autoprefixer and it will automatically add the prefix of the old syntax for you
    or use a framework like bourbon to add the prefix

    In addition, some features are not supported by the old syntax, but can i use are written.

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 11:43:08

    .flex() {
        display: -webkit-box; 
        display: -moz-box; 
        display:-webkit-flex;
        display: -ms-flexbox;
        display:flex;
    }

    It can be compatible with ie10 and above. There are basically no problems with other web browsers. It is hard to say about the mobile version. There are no problems with ios. However, there are too many third-party browsers for Android, such as UC, and the kernels are all very old versions.

    reply
    0
  • Cancelreply