例如 <a class="a1">你的城市</> css: .a1:hover{ color:red; 改变超链接的字体颜色 background-color:red; 改变背景颜色 } 而;active是当鼠标点击时发生的事件