效果图
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#box{
width: 600px;
height: 800px;
background-color: aqua;
display: flex;
/* flex-direction:row-reverse; */
justify-content:flex-end;
}
.box1{
width: 100px;
height: 100px;
background-color: blueviolet;
margin-right: 10px;
}
</style>
</head>
<body>
<div id="box">
<div class="box1">1</div>
<div class="box1">2</div>
<div class="box1">3</div>
<div class="box1">4</div>
<div class="box1">5</div>
<div class="box1">6</div>
</div>
</body>
</html>