zoukankan      html  css  js  c++  java
  • 微信小程序布局

    • flex-direction  flex-direction: row | row-reverse | column | column-reverse;
      • row(默认值):主轴为水平方向,起点在左端。
      • row-reverse:主轴为水平方向,起点在右端。
      • column: 。
      • column-reverse:主轴为垂直方向,起点在下沿。
    • flex-wrap  flex-wrap: nowrap | wrap | wrap-reverse;
    • 1nowrap(默认):不换行。
    • 2wrap:换行,第一行在上方。
    • 3wrap-reverse:换行,第一行在下方。
    • flex-flow   flex-flow: <flex-direction> || <flex-wrap>;
    • justify-content   justify-content: flex-start | flex-end | center | space-between | space-around;
    • flex-start(默认值):左对齐
    • flex-end:右对齐
    • center 居中
    • space-between:两端对齐,项目之间的间隔都相等。
    • space-around:每个项目两侧的间隔相等。所以,项目之间的间隔比项目与边框的间隔大一倍。
    • align-items   align-items: flex-start | flex-end | center | baseline | stretch;
    • flex-start:交叉轴的起点对齐。
    • flex-end:交叉轴的终点对齐。
    • center:交叉轴的中点对齐。
    • baseline: 项目的第一行文字的基线对齐。
    • stretch(默认值):如果项目未设置高度或设为auto,将占满整个容器的高度。
    • align-content  align-content: flex-start | flex-end | center | space-between | space-around | stretch;
    • flex-start:与交叉轴的起点对齐。
    • flex-end:与交叉轴的终点对齐。
    • center:与交叉轴的中点对齐。
    • space-between:与交叉轴两端对齐,轴线之间的间隔平均分布。
    • space-around:每根轴线两侧的间隔都相等。所以,轴线之间的间隔比轴线与边框的间隔大一倍。
    • stretch(默认值):轴线占满整个交叉轴。
  • 相关阅读:
    请求分页中的内存分配
    Android开发实例总结
    出现java.lang.IllegalArgumentException异常
    请求分页中的内存分配之续
    HTTPCLIENT使用学习
    传输控制层协议TCP概述抄书
    freemarker中空值 null的处理 ?exists ?if_exists ?default(“”)
    Mybatis MapperScannerConfigurer 自动扫描 将Mapper接口生成代理注入到Spring 大新博客 推酷 360安全浏览器 7.1
    jade 学习笔记 gulp 自动编译
    @resource和@autowired的区别是什么CSDN论坛CSDN.NET中国最大的IT技术社区 Google Chrome
  • 原文地址:https://www.cnblogs.com/tom2015010203/p/11647656.html
Copyright © 2011-2022 走看看