Why CSS :active on link doesn't make the current page link highlighted?
问题 I have the following code below for list into master page <div id="header"> <ul> <li><a href="default.aspx">Home</a></li> <li><a href="page1.aspx">Page1</a></li> </ul> </div> with css #header a:hover { color: #AA1111; border-color: #AA1111; } #header a:active { color: #AA1111; border-color:#AA1111; } but the link doesn't highlight with color when page is actived . 回答1: :active does not indicate that the link will be highlighted when the current page is active. :active is the state of the