首页 > 作文

FCC—CSS Flexbox: Use the flex

更新时间:2023-04-07 07:29:17 阅读: 评论:0

addingdisplay: flexto an element turns it into a flex container.

this makes it possible to align any children of that element into rows or columns.

you do this by adding theflex-directionproperty to the parent item and tting it to row or column.

creating a 明向校区r家长会的意义ow will align the children horizontally, and creating a column will align the children vertically.

other options forflex-directionare row-rever and column-rever.

note:the default value for theflex-directionprope文理分科如何选择rty isrow.

add the css propertyflex-directionto the#box-containerelement, and give it a value ofrow-rever.

<style>  #box-container {    display: flex;    height: 500px;    flex-direction: row-rever;  }  #b描写人多的四字词语ox-1 {    background-color: dodgerblue;    width: 50%;    height: 50%;  }  #box-2 {    background-color: orangered;    width: 50%;    height: 50%;  }催字组词</style><div id="box-container">  <div id="box-1"></div>  <div id="box-2"></div></div>

from:

to:

本文发布于:2023-04-07 07:29:15,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/zuowen/ca88aef0af54ab222d599da8557fc381.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:FCC—CSS Flexbox: Use the flex.doc

本文 PDF 下载地址:FCC—CSS Flexbox: Use the flex.pdf

标签:文理   家长会   人多   校区
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图