ホームページ  >  記事  >  ウェブフロントエンド  >  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 中国語 Web サイトの他の関連記事を参照してください。

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。