addingdisplay: flex
to 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-direction
property 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-direction
are row-rever and column-rever.
note:the default value for theflex-direction
prope文理分科如何选择rty isrow
.
add the css propertyflex-direction
to the#box-container
element, 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 条评论) |