手机点击一下按钮,按钮会一直处于hover状态,,怎么解决?
手机点击一下按钮,按钮会一直处于hover状态,,怎么解决?
手机点击一下按钮,按钮会一直处于hover状态,,怎么解决?
2016-02-18
就一个a标签做的按钮 没有js
<html>
<head>
<title>cs</title>
<meta charset="utf-8" />
<meta name="viewport" content=" height = device-height,
width = device-width,
initial-scale = 1.0,
minimum-scale = 1.0,
maximum-scale = 1.0,
user-scalable = yes" />
<style type="text/css">
div{
width: 50%;
margin: 0 auto;
}
#an{
width: 50%;
height: 50px;
display: block;
text-align: center;
line-height: 50px;
font-family: 微软雅黑;
color: #777;
border:1px solid #666;
border-radius: 10px;
}
#an:active{
background-color: #ddd;
}
</style>
</head>
<body>
<div>
<a id="an" href="#">按钮</a>
</div>
</body>
</html>
举报