About flex base and compatibility wording (b)

Second, compatibility

  / * Parent element - arranged laterally (spindle) * /

     
  display: box; (oldest version of telescoping box)
  the display: -webkit-Box; / * the iOS 6-, Safari 3.1-6 * /
  the display: -webkit-Flex; / * * the Chrome /
  the display: -moz-Box; / Firefox. 19 * * /
  the display: -ms-of flexbox;   
  the display: Flex; / * Flex container * /
 
/ * direction * /
  -webkit-Flex-direction: Row;
  -moz-Flex-direction: Row;
  -ms-FLEX- direction: Row;
  -o-Flex-direction: Row; 
  Flex-direction: Row; [new] version of grammar

 


/ * Parent element - centered horizontally (transverse spindle is to take effect) * / [new] version of grammar
  -webkit-The justify-Content: Center;
  -moz-The justify-Content: Center;
  -ms-The justify-Content: Center;
  -o Content--justify: Center;
  The justify-Content: Center;

 

/ * Child elements - vertical center (in the side of the shaft on the vertical axis) * / [new version Grammar
 -webkit-align = left-items: Center;
 -moz-align = left-items: Center;
 -ms-align = left-items: Center;
 align = left-items--o: Center;
 align = left-items: Center;

 


/*父元素-横向换行 */
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  -o-flex-wrap: wrap;
  flex-wrap:wrap;

 


/* 子元素—平分比例 */ 
 -prefix-box-flex: 1; /* old spec webkit, moz */
 -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
 -webkit-flex: 1;          /* Chrome */
 -moz-box-flex: 1;         /* Firefox 19- */
 -ms-flex: 1;              /* IE 10 */
 width:20%;
 flex: 1;                  /* NEW,  Opera 12.1, Firefox 20+ */
 flex: 2;
 


The default value can not not write flex stretch.

 

/ * Child elements - for changing the display order of the source document * /
 -prefix-Box-Group-ORDINAL:. 1; / * Old spec; MUST BE positive * /
 -webkit-Box-Group-ORDINAL: 2;    
 -moz-Box Group--ordinal: 2;       
 -ms-Flex-Order: 2;               
 -webkit-Order: 2;                
 Order: 2;                        
 Order:. 3;

 

[Older] syntax
/ * center * /
Box-Pack: Center; // horizontal
box-align: center; // vertical
-webkit-Box-Pack: Center;
-webkit-Box-align = left: Center;
-moz-Box -pack: Center;
-moz-Box-align = left: Center;
-ms-Flex-Pack: Center;
-ms-Flex-align = left: Center;


/ * The child element direction * /  
-webkit-Box-Orient: Horizontal;  
-Moz-Box-Orient: Horizontal;  
-Ms-Box-Orient: Horizontal; 
-O-Box-Orient: Horizontal; 
Box-Orient: Horizontal;

 

 

Guess you like

Origin www.cnblogs.com/caitangbutian/p/11291588.html