?
This document uses PHP Chinese website manual Release
box-flex-group:<integer>
默認(rèn)值:1
適用于:伸縮盒子元素
繼承性:無
動(dòng)畫性:否
計(jì)算值:指定值
<integer>:用整數(shù)值來定義伸縮盒對(duì)象的子元素所在的組。
動(dòng)態(tài)給數(shù)值較大的組分配其內(nèi)容所需的實(shí)際空間(如無內(nèi)容、padding、border則不占空間),剩余空間則均分給數(shù)值最小的那個(gè)組(可能有1個(gè)或多個(gè)元素)
對(duì)應(yīng)的腳本特性為boxFlexGroup。
Values | IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|---|
Basic Support | 6.0-11.0 | 2.0-40.0 | 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- |
<section id="bd"> <section id="syntax" class="g-mod g-attr"> <h2 class="tit">語法:</h2> <div class="cont"> <p><strong>box-flex-group</strong>:<a href="../../values/numeric/integer.htm"><integer></a></p> <p><strong>默認(rèn)值</strong>:<mark class="defaultvalue">1</mark></p> <p><strong>適用于</strong>:伸縮盒子元素</p> <p><strong>繼承性</strong>:無</p> <p><strong>動(dòng)畫性</strong>:否</p> <p><strong>計(jì)算值</strong>:指定值</p> </div> </section> <section id="value" class="g-mod g-attr"> <h2 class="tit">取值:</h2> <div class="cont"> <dl> <dt><a href="../../values/numeric/integer.htm"><integer></a>:</dt> <dd>用整數(shù)值來定義伸縮盒對(duì)象的子元素所在的組。</dd> </dl> </div> </section> <section id="intro" class="g-mod g-attr"> <h2 class="tit">說明:</h2> <div class="cont"> <strong>設(shè)置或檢索伸縮盒對(duì)象的子元素的所屬組。</strong> <ul> <li>動(dòng)態(tài)給數(shù)值較大的組分配其內(nèi)容所需的實(shí)際空間(如無內(nèi)容、padding、border則不占空間),剩余空間則均分給數(shù)值最小的那個(gè)組(可能有1個(gè)或多個(gè)元素)</li> <li>對(duì)應(yīng)的腳本特性為<strong>boxFlexGroup</strong>。</li> </ul> </div> </section> <section id="compatible" class="g-mod g-attr"> <h2 class="tit">兼容性:</h2> <div class="cont"> <ul class="support-type"> <li><span class="support">淺綠</span> = 支持</li> <li><span class="unsupport">紅色</span> = 不支持</li> <li><span class="partsupport">粉色</span> = 部分支持</li> </ul> <table class="g-data"> <thead> <tr> <th>Values</th> <th>IE</th> <th>Firefox</th> <th>Chrome</th> <th>Safari</th> <th>Opera</th> <th>iOS Safari</th> <th>Android Browser</th> <th>Android Chrome</th> </tr> </thead> <tbody> <tr> <td><strong>Basic Support</strong></td> <td class="unsupport">6.0-11.0</td> <td class="unsupport">2.0-40.0</td> <td class="support">4.0-45.0<sup class="fix">-webkit-</sup></td> <td class="support">6.0-8.0<sup class="fix">-webkit-</sup></td> <td class="support">15.0-29.0<sup class="fix">-webkit-</sup></td> <td class="support">6.0-8.3<sup class="fix">-webkit-</sup></td> <td class="support">2.1-4.4.4<sup class="fix">-webkit-</sup></td> <td class="support">18.0-42.0<sup class="fix">-webkit-</sup></td> </tr> </tbody> </table> </div> </section> <section id="example" class="g-mod g-attr"> <h2 class="tit">示例:</h2> <div class="cont"> <textarea cols="90" rows="10"><!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>box-flex-group_CSS參考手冊(cè)_web前端開發(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:nth-child(1){-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;-webkit-box-flex-group:1;-moz-box-flex-group:1;-ms-box-flex-group:1;background:#666;} .box li:nth-child(2){-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;-webkit-box-flex-group:2;-moz-box-flex-group:2;-ms-box-flex-group:2;background:#999;} .box li:nth-child(3){-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;-webkit-box-flex-group:1;-moz-box-flex-group:1;-ms-box-flex-group:1;background:#ccc;} </style> </head> <body> <h1>box-flex-group</h1> <ul id="box" class="box"> <li>a</li> <li>b</li> <li>c</li> </ul> </body> </html> </textarea> <p><input type="button" class="g-btn g-btn-sure" value="運(yùn)行"><input type="button" class="g-btn g-btn-copy" value="復(fù)制"></p> </div> </section> </section>
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例