内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

實現(xiàn)CSS圓環(huán)的方法有哪些-創(chuàng)新互聯(lián)

小編給大家分享一下實現(xiàn)CSS圓環(huán)的方法有哪些,希望大家閱讀完這篇文章后大所收獲,下面讓我們一起去探討吧!

成都創(chuàng)新互聯(lián)公司主要從事成都做網(wǎng)站、網(wǎng)站制作、網(wǎng)頁設(shè)計、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)建始,十多年網(wǎng)站建設(shè)經(jīng)驗,價格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):18980820575

實現(xiàn)CSS圓環(huán)的方法有哪些

1. 兩個標(biāo)簽的嵌套:

<p class="element1">
    <p class="child1"></p>
</p>
.element1{
            width: 200px;
            height: 200px;
            background-color: lightpink;
            border-radius: 50%;
        }
        .child1{
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-color: #009966;
            position: relative;
            top: 50px;
            left: 50px;
        }

2. 使用偽元素,before/after

<p class="element2"></p>
.element2{
            width: 200px;
            height: 200px;
            background-color: lightpink;
            border-radius: 50%;
        }
        .element2:after{
            content: "";
            display: block;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-color: #009966;
            position: relative;
            top: 50px;
            left: 50px;
        }

3. 使用border:

<p class="element3"></p>
.element3{
            width: 100px;
            height: 100px;
            background-color: #009966;
            border-radius: 50%;
            border: 50px solid lightpink ;
        }

4. 使用border-shadow

<p class="element4"></p>
.element4{
            width: 100px;
            height: 100px;
            background-color: #009966;
            border-radius: 50%;
            box-shadow: 0 0 0 50px lightpink ;
            margin: auto;
        }
<p class="element5">
.element5{
            width: 200px;
            height: 200px;
            background-color: #009966;
            border-radius: 50%;
            box-shadow: 0 0 0 50px lightpink inset;
            margin: auto;
        }

5. 使用radial-gradient

<p class="element6"></p>
.element6{
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: -webkit-radial-gradient( circle closest-side,#009966 50%,lightpink 50%);
        }

看完了這篇文章,相信你對實現(xiàn)CSS圓環(huán)的方法有哪些有了一定的了解,想了解更多相關(guān)知識,歡迎關(guān)注創(chuàng)新互聯(lián)網(wǎng)站制作公司行業(yè)資訊頻道,感謝各位的閱讀!

新聞標(biāo)題:實現(xiàn)CSS圓環(huán)的方法有哪些-創(chuàng)新互聯(lián)
網(wǎng)站鏈接:http://www.rwnh.cn/article36/pocpg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站收錄、移動網(wǎng)站建設(shè)外貿(mào)網(wǎng)站建設(shè)、虛擬主機、網(wǎng)站建設(shè)自適應(yīng)網(wǎng)站

廣告

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

成都做網(wǎng)站
长垣县| 麻阳| 文化| 胶州市| 普兰店市| 辽阳县| 赤壁市| 梁山县| 仪陇县| 林芝县| 盐亭县| 陆河县| 和平县| 镇雄县| 定西市| 宜兰市| 五常市| 汽车| 岳池县| 新巴尔虎右旗| 电白县| 安康市| 肥东县| 建瓯市| 二连浩特市| 桐乡市| 四子王旗| 华池县| 河西区| 浙江省| 南华县| 西吉县| 崇义县| 隆尧县| 桐城市| 萨嘎县| 息烽县| 荃湾区| 青冈县| 阳谷县| 浦东新区|