首頁  >  文章  >  web前端  >  利用css畫一個太極圖(陰陽八卦)實例

利用css畫一個太極圖(陰陽八卦)實例

高洛峰
高洛峰原創
2017-03-14 16:04:262556瀏覽

這篇文章介紹利用css畫一個太極圖(陰陽八卦)實例

利用css畫一個太極圖(陰陽八卦)實例

#
#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;
}


以上是利用css畫一個太極圖(陰陽八卦)實例的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn