zoukankan      html  css  js  c++  java
  • CSS Flexbox 弹性盒子模型

    CSS Flexbox 弹性盒子模型

    设置元素样式为 display: flex 或 display: inline-flex, 让元素变成flex容器, 从而可以通过flex模式布局它的子元素.

    flex-direction:

    值    row | row-reverse | column | column-reverse
    默认值   row

    flex-wrap:

    值    nowrap | wrap | wrap-reverse
    默认值  nowrap

    flex-flow:

    值    <flex-direction> ‖ <flex-wrap>
    默认值  row nowrap

    Flex子对象分布

    justify-content:

    值    flex-start | flex-end | center | space-between | space-around |space-evenly
    默认值   flex-start

    align-items:

    值    flex-start | flex-end | center | baseline | stretch
    默认值  stretch

    align-self:

    值    auto |flex-start | flex-end | center | baseline | stretch
    默认值  auto

    align-content:

    值    flex-start | flex-end | center | space-between | space-around |space-evenly | stretch
    默认值  stretch

    flex-grow:

    值    <number>
    默认值  0

    flex-shrink:

    值    <number>
    默认值  1

    flex-basic: <width>

    值    auto | <length> | <percentage>
    默认值  auto

    flex:

    值    [ <flex-grow> <flex-shrink>? ‖ <flex-basis> ] | none
    默认值  0 1 auto

  • 相关阅读:
    创业艰难
    2013.5.20 a
    碱基对
    安装免费在线客服livezilla系统
    简单实现后台订单页面 上一单,下一单 的按钮
    zencart新进产品滚动
    ZEN CART 一级分类显示所有二级分类产品
    frame弹出框
    zen cart 打开错误信息显示调试开关
    zencart外贸网站促销方案
  • 原文地址:https://www.cnblogs.com/yaoyu126/p/8277804.html
Copyright © 2011-2022 走看看