代码如下:
a{ text-decoration: none; width: 100px; height: 50px; background-color: red; display: inline-block; color: white; text-align: center; line-height: 50px; } a:hover{ background-color: orange; }