Home > Web Front-end > CSS Tutorial > 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)

高洛峰
Release: 2017-03-14 16:04:26
Original
2627 people have browsed it

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;
}
Copy after login


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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template