Why :hover does not work for the specified class
问题 I have the following html code: <a class="deletelink" onclick="return !deleteitem('delete.php')" href="delete.php"> Delete Item </a> with the following css: a.deletelink:hover, a.deletelink:active { background-color: #F00; color:#FF0; } a.deletelink:visited, a.deletelink:link { line-height:5em; width: 5em; text-align: center; margin:2em; display: block; font-weight: bold; color:#F00; background-color:#639; padding: 0.5em; text-decoration: none; } but the color of the link will not change when