Home  >  Article  >  Web Front-end  >  Use css to draw an example of Tai Chi diagram (Yin Yang Bagua)

Use css to draw an example of Tai Chi diagram (Yin Yang Bagua)

高洛峰
高洛峰Original
2017-03-14 16:04:262561browse

This article introduces the use of css to draw a Tai Chi diagram (Yin Yang Bagua) example

Use css to draw an example of Tai Chi diagram (Yin Yang Bagua)

#yin-yang {
width: 96px;
height: 48px;
background: #eee;
border-color: red;
border-style: solid;
border-width: 2px 2px 50px 2px;
border-radius: 100%;
position: relative;
}
#yin-yang:before {
content: "";
position: absolute;
top: 50%;
left: 0;
background: #eee;
border: 18px solid red;
border-radius: 100%;
width: 12px;
height: 12px;
}
#yin-yang:after {
content: "";
position: absolute;
top: 50%;
left: 50%;
background: red;
border: 18px solid #eee;
border-radius:100%;
width: 12px;
height: 12px;
}


The above is the detailed content of Use css to draw an example of Tai Chi diagram (Yin Yang Bagua). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn