Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

实现 筛子 #237

Open
Sunny-117 opened this issue Nov 4, 2022 · 1 comment
Open

实现 筛子 #237

Sunny-117 opened this issue Nov 4, 2022 · 1 comment

Comments

@Sunny-117
Copy link
Owner

No description provided.

@huccct
Copy link

huccct commented May 5, 2023

<!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>
      .dice {
        width: 200px;
        height: 200px;
        position: relative;
        left: 300px;
        top: 200px;
        transform-style: preserve-3d;
        transform: rotateX(45deg) rotateY(45deg);
      }
      .face {
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: white;
        border: 1px solid black;
      }
      .front {
        transform: translateZ(100px);
      }

      .back {
        transform: translateZ(-100px);
      }

      .top {
        transform: rotateX(-90deg) translateZ(100px);
      }

      .bottom {
        transform: rotateX(90deg) translateZ(100px);
      }

      .left {
        transform: rotateY(-90deg) translateZ(100px);
      }

      .right {
        transform: rotateY(90deg) translateZ(100px);
      }
    </style>
  </head>
  <body>
    <div class="dice">
      <div class="face front"></div>
      <div class="face back"></div>
      <div class="face top"></div>
      <div class="face bottom"></div>
      <div class="face left"></div>
      <div class="face right"></div>
    </div>
  </body>
</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants