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

[css] 第366天 用css画出一个圆圈,里面有个叉号(不能用英文字母x) #2247

Open
haizhilin2013 opened this issue Apr 15, 2020 · 1 comment
Labels
css css

Comments

@haizhilin2013
Copy link
Collaborator

第366天 用css画出一个圆圈,里面有个叉号(不能用英文字母x)

我也要出题

@haizhilin2013 haizhilin2013 added the css css label Apr 15, 2020
@RookieGz
Copy link

#cyc {
        width: 150px;
        height: 150px;
        margin: 100px auto;
        border-radius: 50%;
        border: 5px solid #000000;
        position: relative;
      }

      #cyc::before {
        content: "";
        display: block;
        width: 100px;
        height: 20px;
        background: #000;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
      }
      #cyc::after {
        content: "";
        display: block;
        width: 100px;
        height: 20px;
        background: #000;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
      }

``html

```

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

No branches or pull requests

2 participants