CSS从矩形框中删除边框

时间:2014-02-07 10:21:19

标签: css

我通过CSS创建了一个Rectangular Box。但是那个矩形周围有一个边框。我该如何删除它? http://jsfiddle.net/allegrissimo123/LcfdA/

.divider{
    height: 10px;
    background: #eaeaea;
    position: relative;
    margin-top: 50px;
}

.divider:after{
    content:'';
    display: block;
    position: absolute;
    top: -40px; 
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -20px;
    border-color: transparent transparent #eaeaea transparent; 
    border-style: solid;
    border-width: 20px;     
}

1 个答案:

答案 0 :(得分:0)

得到解决方案。

border-color: transparent transparent #eaeaea transparent; 
border-color: rgba(255,255,255,0) rgba(255,255,255,0) #eaeaea rgba(255,255,255,0);