?
This document uses PHP Chinese website manual Release
box-ordinal-group:<integer>
默認(rèn)值:1
適用于:伸縮盒子元素
繼承性:無(wú)
動(dòng)畫(huà)性:否
計(jì)算值:指定值
<integer>:用整數(shù)值來(lái)定義伸縮盒對(duì)象的子元素顯示順序。
效果等同于過(guò)渡版本的flex-order屬性和新版本的order屬性;
數(shù)值較低的元素顯示在數(shù)值較高的元素前面;
相同數(shù)值的元素,它們的顯示順序取決于它們的代碼順序;
對(duì)應(yīng)的腳本特性為boxOrdinalGroup。
Values | IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|---|
Basic Support | 6.0-11.0 | 2.0-40.0-moz- | 4.0-45.0-webkit- | 6.0-8.0-webkit- | 15.0-29.0-webkit- | 6.0-8.3-webkit- | 2.1-4.4.4-webkit- | 18.0-42.0-webkit- |
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>box-ordinal-group_CSS參考手冊(cè)_web前端開(kāi)發(fā)參考手冊(cè)系列</title> <meta name="author" content="Joy Du(飄零霧雨), dooyoe@gmail.com, www.doyoe.com" /> <style> h1{font:bold 20px/1.5 georgia,simsun,sans-serif;} .box{display:-webkit-box;display:-moz-box;display:-ms-box;background:#000;width:240px;height:100px;margin:0;padding:10px;list-style:none;vertical-align:top;} .box li{padding:20px;} .box li:nth-child(1){-webkit-box-ordinal-group:3;-moz-box-ordinal-group:3;-ms-box-ordinal-group:3;background:#666;} .box li:nth-child(2){background:#999;} .box li:nth-child(3){background:#ccc;} </style> </head> <body> <h1>box-radinal-group</h1> <ul id="box" class="box"> <li>a</li> <li>b</li> <li>c</li> </ul> </body> </html>
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例