效果如下:
代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.module-border-wrap {
width: 165px;
position: relative;
height: 34px;
box-sizing: border-box;
border: 1px solid #e6e6e6;
/* border-radius: 16px; */
color: #2a221e;
font-size: 14px;
line-height: 34px;
text-align: center;
}
.module-border-wrap.active {
padding: 1px;
border: none;
background-image: linear-gradient(#ff8c60, #fe515f);
color: #ff4f63;
}
.tab {
width: 100%;
height: 100%;
background: #fff;
/* border-radius: 16px; */
}
</style>
</head>
<body>
<div class="module-border-wrap active">
<div class="tab">666</div>
</div>
</body>
</html>