Home >Web Front-end >CSS Tutorial >Use css to draw an example of Tai Chi diagram (Yin Yang Bagua)
This article introduces the use of css to draw a Tai Chi diagram (Yin Yang Bagua) example
#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!