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

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

CSS邊框長(zhǎng)度控制

2020.02.02 | 1718閱讀 | 0條評(píng)論 | 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ā)表評(píng)論

主站蜘蛛池模板: 日韩欧美亚洲综合久久影院Ds| 亚洲国产美国国产综合一区二区| 成人综合久久精品色婷婷| 国产综合亚洲专区在线| 狠狠色婷婷狠狠狠亚洲综合| 婷婷五月六月激情综合色中文字幕| 欧美日韩亚洲综合一区二区三区| 国产欧美日韩综合精品二区| 欧美伊香蕉久久综合类网站| 亚洲综合伊人久久大杳蕉| 国产香蕉尹人综合在线| 亚洲狠狠色丁香婷婷综合| 亚洲亚洲人成综合网络| 色爱区综合激情五月综合色| 狠狠色婷婷狠狠狠亚洲综合| 亚洲综合色婷婷七月丁香| 一本久久a久久精品vr综合| 亚洲综合亚洲综合网成人| 亚洲第一页综合图片自拍| 亚洲乱码中文字幕综合| 色综合色天天久久婷婷基地| 久久久久久综合网天天| 亚洲综合无码一区二区| 综合网在线观看| 图图资源网亚洲综合网站| 伊人久久综合精品无码AV专区| 一本久久a久久精品vr综合| 亚洲国产日韩欧美综合久久| 狠狠久久综合| 亚洲色图综合在线| 伊人久久综合成人网| 狠狠色伊人久久精品综合网| 狠狠色丁香婷婷综合尤物| 琪琪五月天综合婷婷| 亚洲av综合av一区| 国产综合欧美| 亚洲国产成人久久综合一区77| 97久久婷婷五月综合色d啪蜜芽| 丁香五月婷婷综合激情在线| 欧美日韩亚洲国内综合网| 久久狠狠爱亚洲综合影院|