<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>flex对齐</title>
<style>
.bix{
width: 500px;
height: 500px;
background-color: aquamarine;
/* 开启flex布局 */
display:flex;
/* 水平方向对齐 */
/* 居中对齐 */
/* justify-content: center; */
/* 左对齐 */
/* justify-content: flex-start; */
/* 右对齐 */
/* justify-content: flex-end; */
/* 两边对齐 */
/* justify-content: space-between; */
/*环绕对齐 justify-content: space-around; */
/*均分对齐 justify-content: space-evenly; */
/* align-items 垂直方向对齐 */
/* 居中对齐align-items: center; */
/* 顶端对齐align-items: flex-start; */
/* 底端对齐align-items: flex-end; */
}
.son1,.son2{
width: 100px;
height: 100px;
background-color: burlywood;
}</style>
</head>
<body>
</body>
</html>
实训第二天
最新推荐文章于 2024-08-12 09:24:46 发布