CSS: Visited's privacy protection

Source: Internet
Author: User
CSS pseudo-Class (pseudo-classes)

Anchor pseudo-class: In a browser that supports CSS, the different states of a link can be displayed in different ways, including: active, accessed, not accessed, and mouseover.

a:link {color: #FF0000}/* not visited link */a:visited {color: #00FF00}/* visited link */a:hover {color: #FF00FF}/* mouse move to link */a:active {C Olor: #0000FF}/* selected Link */

The use of a tag is often changed by pseudo-class, such as hover hover background background, font-size font size, text-decoration text style (none to underline), color font colors, etc., but in: Visited can't change so many styles.

<! DOCTYPE html>

Many years ago, css:visited was a way of querying the user's history, and it was not a threat to itself, but when it joined the JS getComputedStyle (), it was possible to find out where you had been in your history. With speeds of up to 210,000 URLs per minute, it's possible to get a lot of your historical information or copy your identity through fingerprint printing. Because the browser can keep a history for a long time, this method can expose a considerable portion of your browsing information.

Wow, that's a bunch of people who don't want people to see what they're doing online, so they're starting to protect the privacy of their users Ziji. Well, that's what they do.

The getComputedStyle method is denatured and always returns values as if the user had never visited the site. (But I didn't try to do anything about it.) )

Will: visited castration, can only be used to modify the Color,background-color,border-*-color,outline-color, as well as part of the fill and stroke properties, other properties are: Link instead. and can not use RGBA (), Hsla (), transparent these colors.

The wrong place to translate, welcome to hit me in the face.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.