如何添加带箭头边框的矩形

时间:2016-04-07 08:07:53

标签: css css-shapes

您好我会问我怎样才能在带有箭头的矩形中添加边框。我的代码是:



a.trapez_sharp::after {
    content: "";
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 20px solid #ED1D24!important;
    position: absolute;
    right: -20px;
    top: 0;
}
a.trapez_sharp {
    display: block;
    float: left;
    height: 44px;
    background: #ED1D24;
    text-align: center;
    padding: 0px 6px 0 8px;
    position: relative;
    margin: 0px 29px 0 17px;
    font-size: 20px;
    text-decoration: none;
    color: #fff;
}
a.trapez_sharp::before {
    content: "";
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-right: 25px solid #ED1D24;
    position: absolute;
    top: 0;
    left: -25px;
}

<a class="trapez_sharp" href="www.google.gr">See our services -></a>
&#13;
&#13;
&#13;

我想添加一条显示形状的边框线。我可以在a.trapez_sharp上添加边框:1px solid #ffffff; ,但是当我把它添加到之后和它被破坏之前。 任何建议都会有所帮助

0 个答案:

没有答案