Linux265
  • 首页
  • 资讯
  • 发行
  • 游戏
  • 软件
  • 教程
  • 书籍
  • 截图
  • 工具
  • 名站
  • 资源
  • 命令
  • VPS
如果您喜欢{Linux265},请告诉您身边的朋友,谢谢! 首页 > 教程 > CSS 参考手册 >CSS flex-direction 属性
CSS 参考手册
CSS 参考手册
CSS 选择器
CSS 听觉参考手册
CSS Web安全字体组合
CSS 动画
CSS 属性
CSS align-content 属性
CSS align-items 属性
CSS align-self 属性
CSS all 属性
CSS3 animation 属性
CSS3 animation-delay 属性
CSS animation-direction 属性
CSS3 animation-duration 属性
CSS animation-fill-mode 属性
CSS3 animation-name 属性
CSS3 animation-play-state 属性
CSS3 animation-timing-function 属性
CSS3 appearance 属性
CSS3 backface-visibility 属性
CSS background 属性
CSS background-attachment 属性
CSS background-blend-mode 属性
CSS3 background-clip 属性
CSS background-color 属性
CSS background-image 属性
CSS3 background-origin 属性
CSS background-position 属性
CSS background-repeat 属性
CSS3 background-size 属性
CSS border-bottom-color 属性
CSS3 border-bottom-left-radius 属性
CSS3 border-bottom-right-radius 属性
CSS border-bottom-style 属性
CSS border-bottom-width 属性
CSS border-collapse 属性
CSS border-color 属性
CSS3 border-image 属性
CSS3 border-image-outset 属性
CSS3 border-image-repeat 属性
CSS3 border-image-slice 属性
CSS3 border-image-source 属性
CSS3 border-image-width 属性
CSS Border-left 属性
CSS border-left-color 属性
CSS border-left-style 属性
CSS border-left-width 属性
CSS3 border-radius 属性
CSS border-right 属性
CSS border-right-color 属性
CSS border-right-style 属性
CSS border-right-width 属性
CSS border-spacing 属性
CSS border-style 属性
CSS border-top 属性
CSS border-top-color 属性
CSS3 border-top-left-radius 属性
CSS3 border-top-right-radius 属性
CSS border-top-style 属性
CSS border-top-width 属性
CSS border-width 属性
CSS bottom 属性
CSS3 box-align 属性
CSS3 box-direction 属性
CSS3 box-flex 属性
CSS3 box-flex-group 属性
CSS3 box-lines 属性
CSS3 box-ordinal-group 属性
CSS3 box-orient 属性
CSS3 box-pack 属性
CSS3 box-shadow 属性
CSS3 box-sizing 属性
CSS caption-side 属性
CSS clear 属性
CSS clip 属性
CSS color 属性
CSS3 column-count 属性
CSS3 column-fill 属性
CSS3 column-gap 属性
CSS3 column-rule 属性
CSS3 column-rule-color 属性
CSS3 column-rule-style 属性
CSS3 column-rule-width 属性
CSS3 column-span 属性
CSS3 column-width 属性
CSS3 columns 属性
CSS counter-increment 属性
CSS counter-reset 属性
CSS cursor 属性
CSS direction 属性
CSS display 属性
CSS Empty-cells 属性
CSS3 filter(滤镜) 属性
CSS flex 属性
CSS flex-basis 属性
CSS flex-direction 属性
CSS flex-flow 属性
CSS flex-grow 属性
CSS flex-wrap 属性
CSS float 属性
CSS font 属性
CSS3 @font-face 规则
CSS font-family 属性
CSS font-size 属性
CSS3 font-size-adjust 属性
CSS3 font-stretch 属性
CSS font-style 属性
CSS font-variant 属性
CSS font-weight 属性
CSS3 grid-columns 属性
CSS3 grid-rows 属性
CSS3 hanging-punctuation 属性
CSS height 属性
CSS3 icon 属性
CSS justify-content 属性
CSS3 @keyframes 规则
CSS left 属性
CSS letter-spacing 属性
CSS line-height 属性
CSS list-style-image 属性
CSS list-style-type 属性
CSS margin 属性
CSS margin-bottom 属性
CSS margin-left 属性
CSS margin-right 属性
CSS margin-top 属性
CSS max-height 属性
CSS max-width 属性
CSS Min-height 属性
CSS min-width 属性
CSS mix-blend-mode 属性
CSS object-fit 属性
CSS object-position 属性
CSS3 nav-down 属性
CSS3 nav-index 属性
CSS3 nav-left 属性
CSS nav-right 属性
CSS3 nav-up 属性
CSS3 opacity 属性
CSS order 属性
CSS outline 属性
CSS outline-color 属性
CSS3 outline-offset 属性
CSS outline-style 属性
CSS Outline-width 属性
CSS overflow 属性
CSS3 overflow-x 属性
CSS3 overflow-y 属性
CSS padding 属性
CSS Padding-bottom 属性
CSS padding-left 属性
CSS padding-right 属性
CSS padding-top 属性
CSS Page-break-after 属性
CSS page-break-before 属性
CSS page-break-inside 属性
CSS3 perspective 属性
CSS3 perspective-origin 属性
CSS position 属性
CSS3 punctuation-trim 属性
CSS quotes 属性
CSS3 resize 属性
CSS right 属性
CSS3 rotation 属性
CSS tab-size 属性
CSS table-layout 属性
CSS3 target 属性
CSS3 target-name 属性
CSS3 target-new 属性
CSS3 target-position 属性
CSS text-align 属性
CSS text-align-last 属性
CSS text-decoration 属性
CSS text-decoration-color 属性
CSS text-decoration-line 属性
CSS text-decoration-style 属性
CSS text-indent 属性
CSS3 text-justify 属性
CSS3 text-outline 属性
CSS3 text-overflow 属性
CSS3 text-shadow 属性
CSS text-transform 属性
CSS3 text-wrap 属性
CSS top 属性
CSS3 transform-origin 属性
CSS3 transform-style 属性
CSS3 transition 属性
CSS3 transition-delay 属性
CSS3 transition-duration 属性
CSS3 transition-property 属性
CSS3 transition-timing-function 属性
CSS unicode-bidi 属性
CSS vertical-align 属性
CSS visibility 属性
CSS white-space 属性
CSS width 属性
CSS3 word-break 属性
CSS word-spacing 属性
CSS3 word-wrap 属性
CSS z-index 属性
CSS writing-mode 属性
CSS3 animation-iteration-count 属性
CSS border 属性
CSS border-bottom 属性
CSS content 属性
CSS flex-shrink 属性
CSS list-style 属性
CSS list-style-position 属性
CSS3 @media查询
CSS 选择器
CSS .class 选择器
CSS #id 选择器
CSS * 选择器
CSS element 选择器
CSS element,element 选择器
CSS element element 选择器
CSS element>element 选择器
CSS element+element 选择器
CSS [attribute] 选择器
CSS [attribute=value] 选择器
CSS [attribute~=value] 选择器
CSS [attribute
CSS :link 选择器
CSS :visited 选择器
CSS :active 选择器
CSS :hover 选择器
CSS :focus 选择器
CSS :first-letter 伪元素
CSS :first-line 伪元素
CSS :first-child 伪元素
CSS :before 选择器
CSS :after 选择器
CSS :lang() 选择器
CSS3 element1~element2 选择器
CSS3 [attribute^=value] 选择器
CSS3 [attribute$=value] 选择器
CSS3 [attribute*=value] 选择器
CSS3 :first-of-type 选择器
CSS3 :last-of-type 选择器
CSS3 :only-of-type 选择器
CSS3 :only-child 选择器
CSS3 :nth-child() 选择器
CSS3 :nth-last-child() 选择器
CSS3 :nth-of-type() 选择器
CSS3 :nth-last-of-type() 选择器
CSS3 :last-child 选择器
CSS3 :root 选择器
CSS3 :empty 选择器
CSS3 :target 选择器
CSS3 :enabled 选择器
CSS3 :disabled 选择器
CSS3 :checked 选择器
CSS3 :not 选择器
CSS3 ::selection 选择器
CSS :out-of-range选择器
CSS :in-range选择器
CSS :read-write选择器
CSS :read-only选择器
CSS :optional选择器
CSS :required选择器
CSS :valid 选择器
CSS :invalid选择器

CSS flex-direction 属性

CSS flex-basis 属性 CSS flex-flow 属性

实例

设置 <div> 元素内弹性盒元素的方向为相反的顺序:

div
{
    
display:flex;
    
flex-direction:row-reverse;
    

}

试一试

浏览器支持

表格中的数字表示支持该属性的第一个浏览器的版本号。

紧跟在 -webkit-, -ms- 或 -moz- 后的数字为支持该前缀属性的第一个版本。

属性
flex-direction 29.021.0 -webkit- 11.010.0 -ms- 28.018.0 -moz- 9.06.1 -webkit- 17.0

定义和用法

flex-direction 属性规定灵活项目的方向。

注意:如果元素不是弹性盒对象的元素,则 flex-direction 属性不起作用。

默认值: row
继承: 否
可动画化: 否。请参阅 可动画化(animatable)。
版本: CSS3
JavaScript 语法: object.style.flexDirection="column-reverse" 尝试一下

CSS 语法

flex-direction: row|row-reverse|column|column-reverse|initial|inherit;

属性值

值 描述 实例
row 默认值。灵活的项目将水平显示,正如一个行一样。 试一试
row-reverse 与 row 相同,但是以相反的顺序。 试一试
column 灵活的项目将垂直显示,正如一个列一样。 试一试
column-reverse 与 column 相同,但是以相反的顺序。 试一试
initial 设置该属性为它的默认值。请参阅 initial。 试一试
inherit 从父元素继承该属性。请参阅 inherit。  

相关文章

CSS 参考手册:flex 属性

CSS 参考手册:flex-basis 属性

CSS 参考手册:flex-flow 属性

CSS 参考手册:flex-grow 属性

CSS 参考手册:flex-shrink 属性

CSS 参考手册:flex-wrap 属性

CSS flex-basis 属性 CSS flex-flow 属性
分类导航
CSS 参考手册
CSS 响应式设计
AD

站点信息

意见反馈

免责声明

关于本站

联系站长

站点导航

综合资讯

发行版

游   戏

软   件

教   程

书   籍

截   图

工   具

名   站

免费资源

Linux265资源分享网,简称Linux265,是一个致力于分享Linux相关资讯,推广Linux发行版,分享Linux游戏,分享Linux各种优秀实用软件,分享Linux相关教程的资源分享站。本站建立的宗旨是通过分享,让更多的人了解Linux,学习Linux,使用Linux,喜欢Linux。

关注本站: 欢迎投稿

关注公众号:

Copyright@2017-2018 Linux265. 豫ICP备16021824号-1 Powered by Linux265资源分享网