flex的css总结,

server/2024/10/20 15:53:08/

1、App.vue的<style>中全局阴影

<style>
/* 引入flex布局样式 */
@import "./styles/flex.css";
</style>

2、编写flex.css文件

@charset "UTF-8";.flex {display: -webkit-flex;display: flex;
}/*即项目的排列方向*/
.flex-direction-row {display: -webkit-flex;display: flex;flex-direction: row;
}.flex-row {display: -webkit-flex;display: flex;flex-direction: row;
}.flex-direction-reverse {display: -webkit-flex;display: flex;flex-direction: row-reverse;
}.flex-direction-column {display: -webkit-flex;display: flex;flex-direction: column;
}.flex-col {display: -webkit-flex;display: flex;flex-direction: column;
}/*如果一条轴线排不下,如何换行*/
.flex-wrap-nowrap {display: -webkit-flex;display: flex;flex-wrap: nowrap;
}.flex-wrap-wrap {display: -webkit-flex;display: flex;flex-wrap: wrap;
}.flex-wrap-reverse {display: -webkit-flex;display: flex;flex-wrap: wrap-reverse;
}/*属性定义了项目在主轴上的对齐方式。*/
.flex-justify-start {display: -webkit-flex;display: flex;justify-content: flex-start;
}.flex-justify-end {display: -webkit-flex;display: flex;justify-content: flex-end;
}.flex-justify-center {display: -webkit-flex;display: flex;justify-content: center;
}.flex-justify-between {display: -webkit-flex;display: flex;justify-content: space-between;
}.flex-justify-around {display: -webkit-flex;display: flex;justify-content: space-around;
}/*属性定义项目在交叉轴上如何对齐*/
.flex-align-start {display: -webkit-flex;display: flex;align-items: flex-start;
}.flex-align-end {display: -webkit-flex;display: flex;align-items: flex-end;
}.flex-align-center {display: -webkit-flex;display: flex;align-items: center;
}.items-center {align-items: center;
}.justify-center {justify-content: center;
}.flex-align-baseline {display: -webkit-flex;display: flex;align-items: baseline;
}.flex-align-stretch {display: -webkit-flex;display: flex;align-items: stretch;
}

3、直接去页面上写上类名就可以使用了

<template><div><div class="flex-justify-center flex-align-center">dd</div></div>
</template>


http://www.ppmy.cn/server/95849.html

相关文章

Vcpkg安装指定版本包或自定义安装包

在使用 vcpkg 安装特定版本的包或自定义包时&#xff0c;你可以按照以下步骤进行操作&#xff1a; 安装特定版本的包 列出可用的版本&#xff1a; 使用以下命令列出特定包的所有可用版本&#xff1a; vcpkg search <package-name>安装特定版本&#xff1a; 使用 vcpkg …

谷粒商城实战笔记-125-全文检索-ElasticSearch-整合-SpringBoot整合high-level-client

文章目录 一&#xff0c;技术选型1. 通过 TCP 连接&#xff08;9300 端口&#xff09;2. 通过 HTTP 连接&#xff08;9200 端口&#xff09;3.最终选择 二&#xff0c;SpringBoot整合Elasticsearch-Rest-High-Level-Client1&#xff0c;新增模块gulimall-search1&#xff0c;添…

Studying-代码随想录训练营day57| prim算法精讲、kruskal算法精讲

第57天&#xff0c;图论07&#xff0c;两个最小生成树算法的讲解&#x1f4aa;(ง •_•)ง&#x1f4aa;&#xff0c;编程语言&#xff1a;C 目录 题目&#xff1a;53. 寻宝&#xff08;第七期模拟笔试&#xff09; (kamacoder.com) prim算法精讲 拓展 总结&#xff1a; …

贝叶斯学习方法:几种方法介绍

目录 1 拉普拉斯还原-轻松贝叶斯深度学习2 具有归一化流的变分推理3 基于条件归一化流的多元概率时间序列预测 1 拉普拉斯还原-轻松贝叶斯深度学习 深度学习的贝叶斯公式已被证明具有令人信服的理论性质&#xff0c;并提供实用的功能优势&#xff0c;例如改进预测不确定性量化…

搜索引擎设计:如何避免大海捞针般的信息搜索

搜索引擎设计&#xff1a;如何避免大海捞针般的信息搜索 随着互联网的发展&#xff0c;信息的数量呈爆炸式增长。如何在海量信息中快速、准确地找到所需信息&#xff0c;成为了搜索引擎设计中的核心问题。本文将详细探讨搜索引擎的设计原理和技术&#xff0c;从信息获取、索引…

机器学习第五十周周报 CGNN

文章目录 week50 CGNN摘要Abstract0. 概述1. 题目2. Abstract3. 网络结构3.1 状态更新网络3.2 method 4. 文献解读4.1 Introduction4.2 创新点4.3 实验过程 5. 结论6.相关代码CompositeLGNNCompositeGNNcomposite-graph-class小结参考文献 week50 CGNN 摘要 本周阅读了题为Co…

MYSQL数据管理 - 增删改语句

文章目录 数据管理&#xff08;CRUD&#xff09;1 插入数据 INSERT2 删除数据 DELETEQ- drop、delete 与 truncate 区别&#xff1f; 3 修改数据 UPDATE参考 数据管理&#xff08;CRUD&#xff09; CRUD: CREATE READ UPDATE DELETE 对于增加数据、删除和修改数据&#xff0c…

QObject::connect: Cannot queue arguments of type ‘QList<QString>‘

QObject::connect: Cannot queue arguments of type ‘QList’ QObject::connect: Cannot queue arguments of type QList<QString> (Make sure QList<QString> is registered using qRegisterMetaType().)使用信号和槽时&#xff0c;QList无法当做参数被传递&…