按钮按压效果
<button bindtap="" class=“btn btn-primary” hover-class=‘btn_hover’>联系开发者</button>
样式
.btn{
width: 720rpx;
margin: 8rpx 15rpx;
color: #755f51;
font-size: 30rpx;
box-shadow: 3rpx 3rpx 3rpx #b0967b;
border-radius: 4rpx;
border-style: none;
}
.btn-warning{
background-color: #f8f4eb;
}
.btn-primary{
background-color: #fefbf4;
}
button::after {
border: none;//去边框
}
.btn_hover {
opacity: 0.8;//按压时透明度
}