SOURCE

console 命令行工具 X clear

                    
>
console
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .child {
        /* // 需要设置对应宽度单位 */
      width: 74px; 
      display: flex;
      text-align: right ;
      position: fixed;
      right: 0;
      /* // 因为旋转的点实在右上角, 所以正常会被旋转到上面, 这个时候向下移动对应宽度就行 */
      top: 74px; 
      transform-origin: top right;
      transform: rotate(90deg);
    }
  </style>
</head>

<body>

  <div class="parent">
    <div class="child">
      <img src="" style="width: 20px; height: 20px;" alt=""> english
    </div>
  </div>
</body>

</html>