. , IE10 , , flexbox. . . flexbox support. / Generate legacy flexbox, , , , .
- , *, display:flex; . flexbox. IE8 9, , IE8, . :
.flex-container {
display: table;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
, flexbox flex-wrap. , [ "flexbugs" ] (https://github.com/philipwalton/flexbugs) . , flex-wrap, 2012 IE9.
* , , -webkit-box UCBrowser Android, - . ( 2016 UCBrowser 10% 25% ). -moz-box, , UCMini, Firefox ( , ).
flex table-cell table-row. , flexbox.
3 :
1) script, Modernizr. Modernizr CSS, IE8-9 JS. :
html.no-flexbox .flex-item {
display: table-cell;
}
2) IE CSS:
3) -JS CSS hacks. , , IE8-9.
: a)
.flex-item {
display: block;
display: table-cell\0/;
}
/:
)
@media \0screen\,screen\9 {
.flex-item { display: table-cell; }
}