预防保健科是做什么的| 维生素b12有什么用| 淋巴发炎是什么症状| 谷氨酰基转移酶高是什么原因| 蚊香灰有什么作用| 为什么会突然晕倒| 烧烤用什么油| 起水泡痒是什么原因| 豌豆炒什么好吃| 手关节疼痛是什么原因| 肝实质回声不均匀是什么意思| 沙茶酱是什么做的| 灰指甲用什么药膏| 农历五月二十是什么星座| 世故是什么意思| 咦是什么意思| 在什么| 楚国是现在的什么地方| 八月二号是什么星座| 为什么喝咖啡会心慌| 夏令时什么时候开始和结束| 上海属于什么方向| 哺乳期可以喝什么饮料| 脑卒中是什么意思| 跳蚤怕什么东西| 利可君片是什么药| 雪白雪白的什么| 人上人是什么意思| 慢性萎缩性胃炎吃什么食物好| 千古一帝指什么生肖| 全血粘度低切偏高是什么意思| 喝什么茶可以降血糖| 尿液检查白细胞高是什么原因| 尿潜血阳性什么意思| 无事不登三宝殿什么意思| 痰湿体质吃什么中成药| 什么是同人文| 睾丸潮湿是什么原因| 纨绔子弟什么意思| 什么是花胶| 维生素b2吃多了有什么副作用| 666代表什么意思| 颠三倒四是什么意思| 什么石头最值钱| 膝关节疼是什么原因| 女人吃猪肝有什么好处| 手电筒的金属外壳相当于电路中的什么| 丈青色是什么颜色| 道场是什么意思| 店长的工作职责是什么| 家政是什么工作| 比基尼是什么| romoss是什么牌子| 什么叫糙米| 胎儿永久性右脐静脉是什么意思| 粉尘作业时必须佩戴什么口罩| 腻了是什么意思| 颞下颌关节炎吃什么药| 纳财是什么意思| cmn是什么意思| 心衰用什么药| 叶酸什么时候吃最好| 戊戌是什么意思| 溺水是什么意思| 罗汉果泡水有什么好处| ab血型和o型生的孩子是什么血型| 酚氨咖敏片的别名叫什么| 省委副书记是什么级别| moco是什么牌子| 青霉素过敏吃什么消炎药| 高筋面粉是什么意思| 1942年属什么生肖属相| 3月25日是什么星座| 10000mah是什么意思| 为什么一照相脸就歪了| md是什么职位| 雅五行属性是什么| 什么叫荨麻疹| 揩油什么意思| 四肢百骸是什么意思| 冰淇淋是什么做的| 胆囊充盈欠佳什么意思| 尿血挂什么科| 深蹲有什么好处| 身高用什么单位| 上升星座是什么意思| 什么火热| 星期三左眼皮跳是什么预兆| 此刻朋友这杯酒最珍贵是什么歌| 鸡心为什么不建议吃| 亚麻是什么面料| 旁听是什么意思| 为什么不能踩死蜈蚣| 蝉鸣声耳鸣是什么原因引起的| 什么的香蕉| 0.8是什么意思| wpc是什么意思| 梦见捡手机是什么意思| 不够时间好好来爱你是什么歌| 亚蒂息肉是什么意思| 粗钢是什么| 7月22日是什么星座| 浇去掉三点水读什么| 探病买什么水果| 喝藿香正气水不能吃什么| 家里为什么突然有床虱| 94岁属什么| 花可以组什么词| 指甲盖上有竖纹是什么原因| 胸闷想吐是什么原因| 甲氰咪胍又叫什么| est.是什么意思| cmv病毒是什么病毒| 嗳腐吞酸是什么意思| 喝酒精的后果是什么| 白月光是什么意思| 处长什么级别| 早上右眼跳是什么预兆| 中国信什么教| 日进斗金是什么意思| 阿托伐他汀钙片有什么副作用| 薄荷叶有什么功效| 八个月宝宝可以吃什么水果| 冲虎煞南是什么意思| 睾丸疼挂什么科| 诚五行属什么| 什么是双规| met是什么意思| 今天是个什么日子| 眼睛一直跳是什么原因| 飞蚊症用什么眼药水| 81年属鸡是什么命| 指甲紫色是什么病的征兆| 小麦是什么粮食| 月经淋漓不尽是什么原因| 元旦送老师什么礼物| 毛泽东什么时候逝世| 青岛有什么特产| 活性炭和木炭有什么区别| 小囊肿是什么病严重吗| 新陈代谢是指什么| 上火牙疼吃什么药| 右耳痒是什么预兆| 属虎生什么属相宝宝好| 来大姨妈吃什么对身体好| 为什么蛋皮会痒| 吃饭不规律会导致什么问题| 伪娘什么意思| 散瞳是什么意思| 土字旁的字有什么| 吃瓜子有什么好处| aqi是什么意思| 男性内分泌科检查什么| 脑死亡是什么原因引起的| 黑裤子配什么颜色的鞋| 耳朵嗡嗡响是什么原因| 小李子为什么叫小李子| 长湿疹是什么原因引起的| 海带排骨汤海带什么时候放| 慢性萎缩性胃炎吃什么药可以根治| 脚后跟骨头疼是什么原因| 茶走是什么意思| 但闻人语响的但是什么意思| 酪蛋白是什么| 牛仔蓝配什么颜色好看| 造瘘手术是什么意思| 受害者是什么意思| 尿尿泡沫多是什么原因| 睡觉起来嘴巴苦是什么原因| 草长莺飞是什么生肖| 思维什么意思| 为什么会胃胀气| 蜂蜜是什么糖| 皮肤黄吃什么可以改善| 情是什么意思| 补办户口本需要什么材料| 什么是树莓| 盆腔积液吃什么消炎药| 腐竹是什么| 脾虚吃什么中成药| 人参果什么季节成熟| 抗血小板是什么意思| 胸口有痣代表什么意思| 113是什么意思| 喜欢喝冰水是什么原因| 难免流产什么意思| 口干嗓子干是什么原因| 音容笑貌的意思是什么| 外婆家是什么菜系| 生物工程是什么专业| 什么是顶香人| 为什么医院不建议药流| 属龙的五行属性是什么| 头晕目眩挂什么科| 女人梦到被蛇咬是什么意思| pears是什么意思| 日语八嘎是什么意思| 肾阴虚火旺有什么症状| 吃头孢不能吃什么水果| 家有喜事是什么生肖| pha是什么意思| 需要透析的是什么病| 屎特别臭是什么原因| 孕吐一般从什么时候开始| 红眼病不能吃什么东西| 脑壳疼是什么原因| 滑肠是什么意思| 是什么星座| 16周检查什么项目| 什么叫带状疱疹| 30是什么意思| 尿隐血什么意思| 天意是什么意思| 促甲状腺素低是什么原因| 瞳字五行属什么| 守望先锋是什么类型的游戏| 谷草转氨酶偏低是什么意思| 仓鼠为什么喜欢跑轮| shia是什么意思| 路征和景甜什么关系| 羊鞭是什么部位| 木耳菜不能和什么一起吃| 痕迹是什么意思| 舌苔厚口臭吃什么药好| 头痛是什么原因造成的| 什么品牌的奶粉最好| 春代表什么生肖| 乙肝核心抗体阳性说明什么| 3月5日是什么星座| 什么玩意儿| 补充镁有什么好处| 白化病是什么遗传| 风加具念什么| 江西简称是什么| 做梦流产了是什么意思| 蜂蜜水有什么好处| 心悸吃什么药效果好| 什么是紫外线| 蓄势是什么意思| 智齿是什么| 肝胆不好有什么症状有哪些表现| 枫字五行属什么| 社恐的人适合什么工作| 腰间盘突出睡觉什么姿势好| 胃潴留是什么病| 为什么不敢挖雍正陵墓| 艾司唑仑是什么药| hbr是什么意思| ig是什么| 彩金和黄金有什么区别| 化疗期间不能吃什么| 格列卫是什么药| 吃槟榔有什么好处和坏处| 浮躁的意思是什么| 连长相当于地方什么官| 什么叫转基因| 三只手是什么意思| hbsab阳性是什么意思| 台启是什么意思| 1969属什么| 尿管型偏高是什么原因| 大便拉水是什么原因| 兑卦代表什么| 什么牌子的洗衣机最好| 百度
directory search
简介 更新历史 关于样式表 属性 定位 布局 position z-index top right bottom left clip display float clear visibility overflow overflow-x overflow-y 尺寸 width min-width max-width height min-height max-height 外补白 margin margin-top margin-right margin-bottom margin-left 内补白 padding padding-top padding-right padding-bottom padding-left 边框 border border-width border-style border-color border-top border-top-width border-top-style border-top-color border-right border-right-width border-right-style border-right-color border-bottom border-bottom-width border-bottom-style border-bottom-style border-bottom-color border-left border-left-width border-left-style border-left-color border-radius border-top-left-radius border-top-right-radius border-bottom-right-radius border-bottom-left-radius box-shadow border-image border-image-source border-image-slice border-image-width border-image-outset border-image-repeat 背景 background background-color background-image background-repeat background-attachment background-position background-origin background-clip background-size 颜色 color opacity 字体 font font-style font-variant font-weight font-size font-family font-stretch font-size-adjust 文本 text-transform white-space tab-size word-break word-wrap overflow-wrap text-align text-align-last text-justify word-spacing letter-spacing text-indent vertical-align line-height text-size-adjust 文本装饰 text-decoration text-decoration-line text-decoration-color text-decoration-style text-decoration-skip text-underline-position text-shadow 书写模式 direction unicode-bidi writing-mode 列表 list-style list-style-image list-style-position list-style-type 表格 table-layout border-collapse border-spacing caption-side empty-cells 内容 content counter-increment counter-reset quotes 用户界面 appearance text-overflow outline outline-width outline-color outline-style outline-offset nav-index nav-up nav-right nav-down nav-left cursor zoom box-sizing resize ime-mode user-select pointer-events 多列 columns column-width column-count column-gap column-rule column-rule-width column-rule-style column-rule-color column-span column-fill column-break-before column-break-after column-break-inside 伸缩盒(旧) box-orient box-pack box-align box-flex box-flex-group box-ordinal-group box-direction box-lines 伸缩盒(新) flex flex-grow flex-shrink flex-basis flex-flow flex-direction flex-wrap align-content align-items align-self justify-content order 变换 transform transform-origin transform-style perspective perspective-origin backface-visibility 过渡 transition transition-property transition-duration transition-timing-function transition-delay 动画 animation animation-name animation-duration animation-timing-function animation-delay animation-iteration-count animation-direction animation-play-state animation-fill-mode 打印 page page-break-before page-break-after page-break-inside 媒体查询 width height device-width device-height orientation aspect-ratio device-aspect-ratio color color-index monochrome resolution scan grid Only IE scrollbar-3dlight-color scrollbar-darkshadow-color scrollbar-highlight-color scrollbar-shadow-color scrollbar-arrow-color scrollbar-face-color scrollbar-track-color scrollbar-base-color filter behavior Only webkit -webkit-text-fill-color -webkit-text-stroke -webkit-text-stroke-width -webkit-text-stroke-color -webkit-box-reflect -webkit-tap-highlight-color -webkit-user-drag -webkit-overflow-scrolling 选择符 元素选择符 通配选择符(*) 类型选择符(E) ID选择符(E#id) 类选择符(E.class) 关系选择符 包含选择符(E F) 子选择符(E>F) 相邻选择符(E+F) 兄弟选择符(E~F) 属性选择符 E[att] E[att="val"] E[att~="val"] E[att^="val"] E[att$="val"] E[att*="val"] E[att|="val"] 伪类选择符 E:link E:visited E:hover E:active E:focus E:lang(fr) E:not(s) E:root E:first-child E:last-child E:only-child E:nth-child(n) E:nth-last-child(n) E:first-of-type E:last-of-type E:only-of-type E:nth-of-type(n) E:nth-last-of-type(n) E:empty E:checked E:enabled E:disabled E:target @page:first @page:left @page:right 伪对象选择符 E:first-letter/E::first-letter E:first-line/E::first-line E:before/E::before E:after/E::after E::placeholder E::selection 语法与规则 !important /*comment*/ @import @charset @media @font-face @page @keyframes @supports 取值与单位 长度 <length> em ex ch rem vw vh vmax vmin cm mm q in pt pc px 角度 <angle> deg grad rad turn 时间 <time> s ms 频率 <frequency> Hz kHz 布局 <fraction> <grid> fr gr 分辨率 <resolution> dpi dpcm dppx 颜色 <color> Color Name HEX RGB RGBA HSL HSLA transparent currentColor 文本 inherit initial unset <string> <url> <identifier> 函数 calc() toggle() 生成内容 counter() counters() attr() 图像 <image> image() image-set() <gradient> linear-gradient() radial-gradient() repeating-linear-gradient() repeating-radial-gradient() 数字 <number> <integer> <percentage> 附录 颜色关键字 媒体类型 CSS Hack 条件Hack 属性级Hack 选择符级Hack 问题和经验 Bugs和解决方案 技巧和经验 其它经验
characters

Blue Gecko BGM111 Bluetooth Smart 模块数据表

百度 二是《办法》明确了残疾人服务机构的行业管理部门以及中国残疾人联合会的职责任务。

语法:

flex-shrink:<number>

默认值1

适用于:flex子项

继承性:无

动画性:是

计算值:指定值

取值:

  • <number>:用数值来定义收缩比率。不允许负值

说明:

设置或检索弹性盒的收缩比率。
  • 根据弹性盒子元素所设置的收缩因子作为比率来收缩空间。

  • 示例:a,b,c将按照1:1:3的比率来收缩空间

    HTML Code:

    <ul class="flex">    <li>a</li>    <li>b</li>    <li>c</li> </ul> .flex{display:flex;width:400px;margin:0;padding:0;list-style:none;} .flex li{width:200px;} .flex li:nth-child(3){flex-shrink:3;}

    flex-shrink的默认值为1,如果没有显示定义该属性,将会自动按照默认值1在所有因子相加之后计算比率来进行空间收缩。

    本例中c显式的定义了flex-shrink,a,b没有显式定义,但将根据默认值1来计算,可以看到总共将剩余空间分成了5份,其中a占1份,b占1份,c占3分,即1:1:3

    我们可以看到父容器定义为400px,子项被定义为200px,相加之后即为600px,超出父容器200px。那么这么超出的200px需要被a,b,c消化

    通过收缩因子,所以加权综合可得200*1+200*1+200*3=1000px;
    于是我们可以计算a,b,c将被移除的溢出量是多少:
    a被移除溢出量:(200*1/1000)*200,即约等于40px
    b被移除溢出量:(200*1/1000)*200,即约等于40px
    c被移除溢出量:(200*3/1000)*200,即约等于120px
    最后a,b,c的实际宽度分别为:200-40=160px, 200-40=160px, 200-120=80px

    • a

    • b

    • c

  • 对应的脚本特性为flexGrow

兼容性:

  • 浅绿 = 支持

  • 红色 = 不支持

  • 粉色 = 部分支持

ValuesIEFirefoxChromeSafariOperaiOS SafariAndroid BrowserAndroid Chrome
Basic Support6.0-10.02.0-21.04.0-20.06.015.0+-webkit-6.0-6.12.1-4.318.0-19.0
11.0+22.0+21.0+-webkit-6.1+-webkit-17.0+7.0+-webkit-4.4+20.0+-webkit-
29.0+9.0+9.0+28.0+

示例:

实例

<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8" />
<title>flex-shrink_CSS参考手册_web前端开发参考手册系列</title>
<meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" />
<style>
h1{font:bold 20px/1.5 georgia,simsun,sans-serif;}
#flex{display:-webkit-flex;display:flex;width:400px;margin:0;padding:0;list-style:none;}
#flex li{width:200px;}
#flex li:nth-child(1){background:#888;}
#flex li:nth-child(2){background:#ccc;}
#flex li:nth-child(3){-webkit-flex-shrink:3;flex-shrink:3;background:#aaa;}
</style>
</head>
<body>
<h1>flex-shrink示例:</h1>
<ul id="flex">
	<li>a</li>
	<li>b</li>
	<li>c</li>
</ul>
</body>
</html>
			

运行实例 ?

点击 "运行实例" 按钮查看在线实例


Previous article: Next article:
笑靥如花什么意思 狗为什么吃屎 为什么香蕉不能放冰箱 为什么会出汗 什么样的人容易得痛风
大惊小怪是什么意思 弓山文念什么 同字五行属什么 嘈杂的意思是什么 还有什么
花枝招展什么意思 什么笔不能写字 女人喜欢什么姿势 腰疼吃什么药 接吻有什么好处
0r是什么意思 五行缺土戴什么 梦到牙齿掉了是什么意思 距离产生美是什么意思 慈禧为什么要毒死光绪
心什么如什么的成语hcv8jop4ns7r.cn 什么叫老人临终骨折hcv8jop5ns5r.cn 手外科属于什么科0735v.com 2月9日什么星座hcv7jop4ns7r.cn 变化不著是什么意思hcv9jop2ns2r.cn
喉咙痛感冒吃什么药96micro.com 瘟疫是什么病hcv8jop1ns7r.cn 禁忌症是什么意思hcv9jop1ns7r.cn 为什么医生说直肠炎不用吃药hcv9jop7ns2r.cn 巴宝莉是什么牌子aiwuzhiyu.com
嗓子不舒服吃什么消炎药hcv8jop5ns3r.cn 苍蝇最怕什么hcv9jop1ns4r.cn 外阴瘙痒用什么药好weuuu.com 带状疱疹用什么药好cj623037.com 单亲是什么意思aiwuzhiyu.com
不疑有他什么意思hcv8jop3ns8r.cn 手指关节疼痛用什么药xjhesheng.com 哟西哟西什么意思hcv8jop5ns5r.cn 薄荷音是什么意思hcv7jop9ns3r.cn 父母有刑是什么意思cj623037.com
百度