文章目录

  • reference
    • example
      • preview

reference

  • Flexbox - Learn web development | MDN (mozilla.org)

example

<!DOCTYPE html>
<html><head><meta charset="utf-8"><title>Flexbox 1 — basic flexbox model chosen</title><style>html {font-family: sans-serif;}body {margin: 0;}header {background: purple;height: 100px;}h1 {text-align: center;color: white;line-height: 100px;margin: 0;}/* 普通元素选择器(选中所有section)权重为(0,0,1) */article {padding: 10px;margin: 1px;background: aqua;flex: 1 200px;}article * {border: dotted 3px;}article::before {content: "@ruleBox(200px)(flex:1)";border: solid 1px;width: 200px;/* display: block; */display: flex;justify-content: space-evenly;}/* article::after {content: "@(flex:1)";border: solid 1px;width: 200px;display: flex;justify-content: space-evenly;} *//* article::before::after{border: 1px solid;content: "test";} */article>div {border: dotted 2px hotpink;display: fle;}article>div>p:first-child {background-color: blue;}article>div>p:first-child,.growSpaceBlock {margin: initial;height: 5px;margin-left: 200px;background-color: hotpink;/* width: 100%; */}article>div>div {margin: 0 0 0 200px;color: red;}.growSpaceBlockInline {/* border: 2px solid; */margin: 0 0 0 200px;/* width: 100%; */display: inline-block;}article:nth-of-type(3)::before {content: "@ruleBox(200px)(flex:2)";}/* 伪元素选择器(选中第三个section)权重为(0,1,1) */article:nth-of-type(3) {flex: 2;}article:nth-of-type(3) {flex: 2 200px;}/* article>div>p {margin: 0 0 0 200px;} *//* Add your flexbox CSS below here */section {display: flex;}</style>
</head><body><header><h1>flex-grow Demo:Sample flexbox example</h1></header><section><article><div><p class="growSpaceBlock"></p><!-- <span>growSpaceBlock</span> --><!-- <span class="growSpaceBlockInline"></span> --><!-- <div>growSpaceBlock</div> --><h2>First article</h2><p>Tacos actually microdosing, pour-over semiotics banjo chicharrones retro fanny pack portland everydaycarry vinyl typewriter. Tacos PBR&B pork belly, everyday carry ennui pickled sriracha normcorehashtagpolaroid single-origin coffee cold-pressed. PBR&B tattooed trust fund twee, leggings salvia iPhonephotobooth health goth gastropub hammock.</p></div></article><article><div><p></p><h2>Second article</h2><p>Tacos actually microdosing, pour-over semiotics banjo chicharrones retro fanny pack portland everydaycarry vinyl typewriter. Tacos PBR&B pork belly, everyday carry ennui pickled sriracha normcorehashtagpolaroid single-origin coffee cold-pressed. PBR&B tattooed trust fund twee, leggings salvia iPhonephotobooth health goth gastropub hammock.</p></div></article><article><div><p></p><h2>Third article</h2><p>Tacos actually microdosing, pour-over semiotics banjo chicharrones retro fanny pack portland everydaycarry vinyl typewriter. Tacos PBR&B pork belly, everyday carry ennui pickled sriracha normcorehashtagpolaroid single-origin coffee cold-pressed. PBR&B tattooed trust fund twee, leggings salvia iPhonephotobooth health goth gastropub hammock.</p><p>Cray food truck brunch, XOXO +1 keffiyeh pickled chambray waistcoat ennui. Organic small batch paleo8-bit. Intelligentsia umami wayfarers pickled, asymmetrical kombucha letterpress kitsch leggingscold-pressed squid chartreuse put a bird on it. Listicle pickled man bun cornhole heirloom artparty.</p></div></article></section>
</body></html>

preview

  • 下面的图中有三个article
  • grow系数的比例体现在红色长度的部分

css_flex-grow增长系数/可用空间分配_实例相关推荐

  1. [基础] AHK函数对象初窥 ① _实例2_实际可用版

    [基础] AHK函数对象初窥 ① _实例2_实际可用版 ;# 母文章 https://zhuanlan.zhihu.com/p/48977298;;;;;;;;;;;;;;;;;;;;;;;;;;;; ...

  2. 系统盘压缩卷小于可用空间_操作系统中的可用空间管理

    系统盘压缩卷小于可用空间 可用空间管理 (Free space management) As we know that the memory space in the disk is limited. ...

  3. c语言二级编程实例,二级C语言编程_-实例.doc

    二级C语言编程_-实例.doc 编程实例 ? 1.???????? 1.2.3.4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?1.程序分析:可填在百位.十位.个位的数字都是1.2.3. ...

  4. 物理内存是什么是计算机的显卡内存吗,物理内存可用数_可用内存和物理内存是什么意思?_可用物理内存...

    网友求助:物理内存可用数_可用内存和物理内存是什么意思?_可用物理内存 问题 最佳答案 物理内存:电脑主板上插入的内存条的总容量(在系统支持的范围内).可用内存:电脑运行时,未被使用的内存总量. 追问 ...

  5. oracle数据库_实例_用户_表空间之间的关系

    oracle数据库_实例_用户_表空间之间的关系 基础概念:Oracle数据库.实例.用户.表空间.表之间的关系 数据库: Oracle数据库是数据的物理存储.这就包括(数据文件ORA或者DBF.控制 ...

  6. java 摄像头 win7_JAVA摄像头调用方法_实例源码介绍—Win7

    JAVA摄像头调用_实例源码介绍-Win7. 本人菜鸟级人物,由于要搞个人脸识别登录(JAVACV),百度谷歌了一下午,找了网上简单的样例代码来试,可是老是调试不过,出现CaptureDeviceMa ...

  7. java 摄像头 win7_Win7系统下JAVA摄像头调用_实例代码介绍

    Win7系统下JAVA摄像头调用_实例代码介绍.由于要搞个人脸识别登录(JAVACV),百度谷歌了一下午,找了网上简单的样例代码来试,可是老是调试不过,出现CaptureDeviceManager.g ...

  8. bootstrap3 表单构建器_实例演示:如何构建高可用的微服务架构

    R 5月8日晚20:30,Kubernetes Master Class在线培训第五期<Kubernetes中的日志.监控与告警> 当你设计和构建大规模应用时,你将面临两个重大挑战:可伸缩 ...

  9. mycat mysql好可用架构_想要学会MyCat高可用集群搭建,但是这些知识点却还玩不明白?...

    一.集群架构 1.MyCat实现读写分离架构 在我前面的文章, 我已经讲解过了通过MyCat来实现MySQL的读写分离, 从而完成MySQL集群的负载均衡 , 如下面的结构图: 但是以上架构存在问题 ...

最新文章

  1. hive外部表改为内部表_3000字揭秘Greenplum的外部数据加载——外部表
  2. android 蓝牙 setscanmode,蓝牙LE扫描在后台无法在Android M上运行
  3. python 绝对路径
  4. Prism for WPF 搭建一个简单的模块化开发框架
  5. 苹果员工号召罢工 呼吁顾客平安夜不购买苹果产品
  6. java集合框架(set)
  7. 天气预测频繁2项集_官宣!今冬冷空气偏强 北方或现大范围低温雨雪天气
  8. 关于v8 Javascript engine 的使用方法研究 (二)转
  9. C++仿函数和typename的用法
  10. 【数据预测】基于matlab双向长短时记忆(BiLSTM)数据预测【含Matlab源码 1824期】
  11. Android Room 升级数据库-增加字段
  12. selenium之使用driver及其属性
  13. 三年之期已至,加多宝如何续写上市新故事
  14. “第三只眼”修炼手册
  15. 贝叶斯算法 — 朴素贝叶斯分类器— 过滤垃圾邮件 — 流失用户 — 用户画像
  16. 人类跌落梦境显示无法连接服务器,人类跌落梦境手游网络连接失败进不去解决办法一览...
  17. Scratch不仅适合小朋友,程序员和大学老师都应该广泛使用!!!
  18. 理解GCN(二)从拉普拉斯矩阵到Ncut问题
  19. 综合工时制-跨零点到节假日的工时统计异常问题的思考
  20. 小米路由器MINI 潘多拉迅雷远程/xunlei安装教程

热门文章

  1. (原创)北美信用卡(Credit Card)个人使用心得与总结(个人理财版) [精华]
  2. 读Flink源码,肝进阿里云Flink组了。。
  3. 等比数列求和和求模的高级运用(编程题)
  4. 智能卡与芯片操作系统
  5. 福州大学计算机考研要准备多久,福州大学(专业学位)计算机技术考研难吗
  6. 营收净利同比上涨,甲骨文回“血”了吗??
  7. java打包成docker images
  8. c语言除法留小数点两位小数,高精度除法小数点位数
  9. 使用信任集利用腐败矩阵提高网络对含噪标签的鲁棒性
  10. 传统企业数字转型,主要面临哪些问题?