// 设置窗体的大小 @mixin setWindowSize( $ null, $height: null, $min null, $max null, $minheight: null, $maxheight: null ) { $width; // 宽度 height: $height; // 高度 min- $minwidth; // 最小宽度 max- $maxwidth; // 最大宽度 min-height: $minheight; // 最小高度 max-height: $maxheight; // 最大高度 } // 设置弹性布局 @mixin setFlexModel($justify, $align, $direction: null, $wrap: null, $content: null, $items: null) { display: flex; // 弹性布局 justify-content: $justify; // 主轴对齐 align-items: $align; // 侧轴对齐 flex-direction: $direction; // 伸缩方向 flex-wrap: $wrap; // 定义行数 align-content: $content; // 伸缩行对齐 justify-items: $items; // 同上 }
弹性盒布局
人生到处知何似,应似飞鸿踏雪泥。