flex布局画三点骰子

<!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{
      box-sizing: border-box;
      padding: 16px;
      display: flex;
      justify-content: space-between;
      width: 400px;
      height: 400px;
      border: 1px solid #000;
      border-radius: 8px;
    }
    .item{
      width: 100px;
      height: 100px;
      background: #000;
      border-radius: 50%;
    }
    .item:nth-child(2){
      align-self: center;
    }
    .item:nth-child(3){
      align-self: flex-end;
    }
  </style>
</head>
<body>
  <div class="box">
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
  </div>
</body>
</html>

results matching ""

    No results matching ""