css 里面加“ !important”提高优先级。.a1:hover{backgroundcolor:red !important;} 转载于:https://www.cnblogs.com/webwangjie/p/7550423.html