.btn1,
.btn2{
border-radius: 1px;
}
.btn1:active,
.btn2:active{
background-color: #b7e9e9;
}
js:<script>
function shield(){
return false;
}
document.body.addEventListener('touchstart',shield,false);//取消浏览器的所有事件,使得active的样式在手机上正常生效
</script>
</head>
<body ontouchstart="" onmouseover="">