直接代码吧,
<!DOCTYPE html>
<html>
<head>
<title>button</title>
<meta charset="utf-8" lang="gb23123">
<style type="text/css">
.btn {
width: 200px;
height: 100px;
color: #FFF;
font-size: 1.2em;
text-align: center;
line-height: 30px;
background-color: #1898e9;
opacity: 0.3;
top: 10px;
left: 50%;
position: absolute;
}
.btn::after {
width: 12px;
height: 96px;
content: "";
right: -10px;
top: 3px;
bottom:3px;
position: absolute;
display: block;
background: #FFF;
border-radius: 100px;
}
</style>
</head>
<body>
<buton class="btn"></buton>
</body>
</html>
这段代码就可以实现一个简单的圆角矩形啦!