龍巖易富通網(wǎng)絡(luò)科技有限公司

龍巖小程序開發(fā),龍巖分銷系統(tǒng)

CSS邊框長度控制

2020.02.02 | 1876閱讀 | 0條評論 | css

1871969-20191126153459547-177945204.png


<div class="content-block">

     <div class="box-container">

         <div class="border-top">border top</div>

     </div>

     <div class="box-container">

         <div class="border-left">border left</div>

     </div>

     <div class="box-container">

         <div class="border-right">border right</div>

     </div>

     <div class="box-container">

         <div class="border-bottom">border bottom</div>

     </div>

</div>


-----------------------------------------------------------------------


.box-container {

    position: relative;

    width: 90%;

    color: #777;

}


.border-top {

    background: #b4bcbf;

    padding: 15px;

}


.border-top:before {

        content: '';

        position: absolute;

        left: 42%;

        top: 0;

        bottom: auto;

        right: auto;

        height: 7px;

        width: 50%;

        background-color: #8796a9;

}


.border-left {

    background: #dfdad6;

    padding: 15px;

}


.border-left:before {

        content: '';

        position: absolute;

        left: 0;

        top: 6%;

        bottom: auto;

        right: auto;

        height: 52%;

        width: 5px;

        background-color: #a89d9e;

}


.border-right {

    background: #eee9c4;

    padding: 15px;

}


.border-right:after {

        content: '';

        position: absolute;

        left: auto;

        top: auto;

        bottom: 5px;

        right: 0;

        height: 52%;

        width: 5px;

        background-color: #f39c81;

}


.border-bottom {

    background: #bcdc9d;

    padding: 15px;

}


.border-bottom:after {

        content: '';

        position: absolute;

        left: 18px;

        top: auto;

        bottom: 0;

        right: auto;

        height: 6px;

        width: 105px;

        background-color: #32b66b;

}



贊 (

發(fā)表評論

主站蜘蛛池模板: 久久久久噜噜噜亚洲熟女综合| 国产综合色产在线精品| 日日狠狠久久偷偷色综合免费| 美国十次狠狠色综合| 狠狠色综合网站久久久久久久高清 | 色成年激情久久综合| 亚洲伊人成无码综合网| 色综合久久中文字幕综合网| 色欲香天天综合网站| 综合久久精品色| 99久久亚洲综合精品成人| 欧美一区二区三区综合| 高清欧美色欧美综合网站| 国产精品天干天干在线综合| 狠狠做深爱婷婷综合一区| 曰韩人妻无码一区二区三区综合部 | 久久婷婷五月综合97色一本一本| 亚洲狠狠成人综合网| 国产综合久久久久久鬼色| 一本久久综合亚洲鲁鲁五月天| 婷婷综合另类小说色区| 亚洲综合日韩中文字幕v在线| 亚洲综合精品网站在线观看| 久久婷婷国产综合精品| 综合久久国产九一剧情麻豆| 一本一道色欲综合网中文字幕 | 色爱区综合激情五月综合色| 狠狠色噜噜狠狠狠狠色综合久AV | 狠狠色噜噜狠狠狠狠色综合久| 色视频综合无码一区二区三区| 观看 国产综合久久久久鬼色 欧美 亚洲 一区二区 | 伊人成年综合网| 亚洲国产成人久久综合碰碰动漫3d| 伊人久久大香线蕉综合Av| 亚洲国产天堂久久综合| 久久综合九色综合97_久久久| 久久综合九色综合久99| 成人精品综合免费视频| 亚洲成A人V欧美综合天堂麻豆| 亚洲综合成人网| 国产成人综合网在线观看|