对比:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<style>
.content{
width: 500px;
height: 500px;
margin: 100px auto;
}
button{
height: 60px;
width: 150px;
border-radius: 30px;
background-color: darkgreen;
font-size: 18px;
font-weight: 600;
/* 设置阴影 */
box-shadow: 0 5px 5px 0 #032d25;
/* 调整按钮文字位置 */
line-height: 56px;
/* 设置透明度 */
opacity: 0.8;
}
</style>
<body>
<div class="content">
<button>按钮</button>
</div>
</body>
</html>