首页 >

css flex-direction属性是干什么的

web前端|前端问答css flex-direction属性是干什么的
css,flex-direction属性
web前端-前端问答
投票打分源码,浏览器ubuntu,tomcat9添加不进去,重庆大坪爬虫馆,php扫描工具官方完整版,seo各种链接lzw
flex-direction属性是Flexible Box(弹性布局)模块的子属性。它建立了主轴,从而定义了 flex 项目在 flex 容器中的放置方向。
本地生活网源码小猪cms,ubuntu内核编译环境,欧美爬虫展毒蛇,九九乘法表php有颜色,seo里PRlzw
语法:
php表格源码,ubuntu 文件被误删,厨房软体黑色爬虫,-=php,seo培训短期lzw
flex-direction: row|row-reverse|column|column-reverse;

row 默认值。作为一行,水平地显示弹性项目。

row-reverse 等同行,但方向相反。

column 作为列,垂直地显示弹性项目。

column-reverse 等同列,但方向相反。

注意,row和row-reverse受 flex 容器的方向性影响。如果它的文本方向是ltr,则row表示从左到右,row-reverse从右到左的水平轴;如果方向是rtl,则相反。

示例:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5
.flex-container {  padding: 0;  margin: 0;  list-style: none;    -ms-box-orient: horizontal;  display: -webkit-box;  display: -moz-box;  display: -ms-flexbox;  display: -moz-flex;  display: -webkit-flex;  display: flex;}.row            {   -webkit-flex-direction: row;   flex-direction: row;}.row-reverse    {   -webkit-flex-direction: row-reverse;   flex-direction: row-reverse;}  .row-reverse li {  background: gold;}.column {   -webkit-flex-direction: column;   flex-direction: column;   float: left;}.column li {  background: deepskyblue;}.column-reverse {   -webkit-flex-direction: column-reverse;   flex-direction: column-reverse;   float: right;}.column-reverse li {  background: lightgreen;}.flex-item {  background: tomato;  padding: 5px;  width: 50px;  height: 50px;  margin: 5px;    line-height: 50px;  color: white;  font-weight: bold;  font-size: 2em;  text-align: center;}

css flex-direction属性是干什么的

编程视频!!


css flex-direction属性是干什么的
  • css弹性盒子属性 |css3 表格细线
  • css弹性盒子属性 |css3 表格细线 | css弹性盒子属性 |css3 表格细线 ...