简体   繁体   中英

Wrapping link highlighted on return to page

I'm experiencing some annoying link highlighting when returning to a page using the browser's Back button. There is an <a> tag that wraps an image, price, and name fields. I have set the CSS for <a> tags to text-decoration: none; and I know that this is being applied, because I can see it with Firebug. Once you click anywhere else on the page, the highlighting disappears, but it is ugly and I'd like to have it not show up in the first place. It only appears when returning from the linked page. Any ideas as to what's causing this behavior? See image below.

在此处输入图片说明

Reset you link style of all pseudo-classe you wanted to, like:

a, a:visited, a:active, a:focus {
    text-decoration: none;
    outline: 0;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM