我想创建一个'简单'的按钮形状与CSS pseudeo:之后/:在课前。与CSS的按钮形状
我读过有关,一些博客和文章,但没有形状看起来像我的。所以我尝试了一下。但是,这是我的东西,我无法弄清楚。
button{
height: 50px;
width: 250px;
border: solid 2px #000;
border-bottom: none;
background: orange;
}
button:after{
height: 0;
width: 125px;
content:"";
position: absolute;
border-top: transparent 30px
border-right: solid 2px #000;
}
button:before{
height: 0;
width: 125px;
content:"";
position: absolute;
border-top: transparent 30px
border-left: solid 2px #000;
}
<button>Let's do it</button>
有人可以给我一个提示?