.myLinkA {
text-decoration: none;
font-size: 12px;
background-color: #4CAF50;
border: none;
padding: 15px 32px;
text-align: center;
display: inline-block;
font-size: 16px;
color: white;
}
.myLinkA:hover {
background-color: #3e8e41;
}
<a class="myLinkA" href="${ctx}/zjdlbb/zjdlbbXZB/zjdlbbxzb/saveXzz.ht"><span></span>保存</a>
另一款:
.myLinkB:hover {
background-color: #3e8e41;
color: white;
}
.myLinkB {
/* background-color: #4CAF50; *//* Green */
background-color:#F2F3F5;
/* border: 1px solid green; */
border: 1px solid #F2F3F5;
color:gray;
padding: 3px 3px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
cursor: pointer;
}