css制作八卦鏡代碼分享-創(chuàng)新互聯(lián)

這篇文章主要講解了“css制作八卦鏡代碼分享”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“css制作八卦鏡代碼分享”吧!

十年的信宜網(wǎng)站建設(shè)經(jīng)驗(yàn),針對設(shè)計(jì)、前端、開發(fā)、售后、文案、推廣等六對一服務(wù),響應(yīng)快,48小時(shí)及時(shí)工作處理。全網(wǎng)營銷推廣的優(yōu)勢是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動(dòng)調(diào)整信宜建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計(jì),從而大程度地提升瀏覽體驗(yàn)。創(chuàng)新互聯(lián)公司從事“信宜網(wǎng)站設(shè)計(jì)”,“信宜網(wǎng)站推廣”以來,每個(gè)客戶項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。

css制作八卦鏡代碼分享




代碼如下:


.bagua {
height: 300px;
width: 300px;
text-align: center;
}
.bagua .dir {
position:absolute;
height:124px;
width: 300px;
background: #aaa;
transform: rotate(45deg);
-o-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
clear: both;
margin: auto;
}
.bagua > .dir {
position: relative;
top: 89px;
}
.left,.right{
line-height: 124px;
position: relative;
z-index: 1;
}
.left {
float: left;
transform: rotate(90deg);
-o-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-webkit-transform: rotate(90deg);
}
.right {
float: right;
transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
text-direction: left;
}
.mirror {
clear: both;
width: 100px;
height: 100px;
margin: auto;
position: relative;
top: -15px;
left: -50px;
}
.mirror .dir {
background: orange;
height:83px;
width: 200px;
}
.era,.zodiac,.yinyang_fish,.fish_semicircle,.yang_fish,.yin_fish,.fish_eye {
border-radius:50%;
-o-border-radius:50%;
-moz-border-radius:50%;
-webkit-border-radius:50%;
margin: auto;
position:relative;
}
.era {
width: 100px;
height: 100px;
margin: auto;
top: -34px;
left: 25px;
}
.era .dir {
width: 150px;
height: 150px;
transform: rotate(15deg);
-o-transform: rotate(15deg);
-moz-transform: rotate(15deg);
-webkit-transform: rotate(15deg);
background: transparent;
}
.era .left,.era .right {
line-height: 150px;
}
.zodiac {
width: 100px;
height: 100px;
top: 25px;
left: 25px;
}</p> <p>.zodiac .dir {
width: 100px;
height: 100px;
transform: rotate(30deg);
-o-transform: rotate(30deg);
-moz-transform: rotate(30deg);
-webkit-transform: rotate(30deg);
position: absolute;
clear: both;
}
.zodiac .left,.zodiac .right {
line-height: 100px;
}
.yinyang_fish {
width: 60px;
height: 60px;
top: 20px;
background:linear-gradient(left, white 49%, #333 51%);
background:-o-linear-gradient(left, white 49%, #333 51%);
background:-moz-linear-gradient(left, white 49%, #333 51%);
background:-webkit-linear-gradient(left, white 49%, #333 51%);
}
.yang_fish,.yin_fish {
width: 50%;
height: 50%;
background: radial-gradient(#333 19%, white 21%);
background: -o-radial-gradient(#333 19%, white 21%);
background: -moz-radial-gradient(#333 19%, white 21%);
background: -webkit-radial-gradient(#333 19%, white 21%);
}
.yin_fish {
background: radial-gradient(white 19%, #333 21%);
background: -o-radial-gradient(white 19%, #333 21%);
background: -moz-radial-gradient(white 19%, #333 21%);
background: -webkit-radial-gradient(white 19%, #333 21%);
}
.solid,.dashed {
width: 100%;
height: 3px;
background: #333;
margin: 5px;
}
.dashed {
background: linear-gradient(left, #333 45%, transparent 46%, transparent 54%, #333 55%);
background: -o-linear-gradient(left, #333 45%, transparent 46%, transparent 54%, #333 55%);
background: -moz-linear-gradient(left, #333 45%, transparent 46%, transparent 54%, #333 55%);
background: -webkit-linear-gradient(left, #333 45%, transparent 46%, transparent 54%, #333 55%);
}


感謝各位的閱讀,以上就是“css制作八卦鏡代碼分享”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對css制作八卦鏡代碼分享這一問題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián)網(wǎng)站建設(shè)公司,,小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!

新聞標(biāo)題:css制作八卦鏡代碼分享-創(chuàng)新互聯(lián)
網(wǎng)頁URL:http://muchs.cn/article6/dsgiog.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信小程序網(wǎng)站設(shè)計(jì)公司、電子商務(wù)網(wǎng)站營銷、靜態(tài)網(wǎng)站標(biāo)簽優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司