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(默认值):轴线占满整个交叉轴。
  • 相关阅读:
    【POJ】【2104】区间第K大
    【BZOJ】【2595】【WC2008】游览计划
    【BZOJ】【1036】树的统计
    【BZOJ】【2038】小Z的袜子
    我的博客~
    CSS选择器
    CSS样式表分类
    python奇闻杂技03 三元表达式示例,函数定义示例,七段彩码管绘制示例
    python奇闻杂技02 time模块,文本进度条示例,数字类型操作,字符串操作
    python奇闻杂技01 turtle学习
  • 原文地址:https://www.cnblogs.com/tom2015010203/p/11647656.html
Copyright © 2011-2022 走看看