CSS order property
Examples
An elastic box object element order:
div#myBlueDIV {order:4;}
div#myGreenDIV {order:3;}
div#myPinkDIV {order:1;}
try it"
Browser Support
Figures in the table represent the first browser to support the property version number.
Immediately following the digital -webkit-, -ms- or -moz- after the first version to support the prefix property.
Attributes | |||||
---|---|---|---|---|---|
order | 29.0 21.0 -webkit- | 11.0 | 28.0 18.0 -moz- | 9.0 6.1 -webkit- | 17.0 |
Definition and Usage
Sequence order property sets or retrieves the flexible pouch model object sub-element of. .
Note: If theelement is not resilient element box object, the order property does not work.
Defaults: | 0 |
---|---|
inherit: | no |
Can be animated: | Yes,see the individual attributes.Please refer to animation (Animatable) . try it |
version: | CSS3 |
JavaScript syntax: | object .style.order = "2"to try |
CSS Syntax
Property Value
值 | 描述 |
---|---|
number | 默认值是 0。规定灵活项目的顺序。 |
initial | 设置该属性为它的默认值。请参阅 initial 。 |
inherit | 从父元素继承该属性。请参阅 inherit 。 |
related articles
CSS Reference: Flex Properties
CSS Reference Manual: Flex-Basis property
CSS Reference Manual: Flex-direction property
CSS Reference Manual: Flex-Flow Properties
CSS Reference Manual: Flex-Grow property
CSS Reference Manual: Flex-Shrink property
CSS Reference Manual: Flex-wrap property
CSS Reference: align = left-Content attributes
CSS Reference: align = left-attribute items View
CSS Reference: align = left-Self properties