This problem has been encountered a long time ago. I have encountered it again today. Write it down by the way.
What is the difference between a and a: link? Take a look at the Code:
There are two labels
<A> red link </a> <a href = "#"> blue link </a>
And color:
a{ color:#900}a:link{ color:#00F}
A {color: #900} is red, a: link {color: # 00F} is blue, and the actual color is. a is red, and: link is blue, which means that a: link will have an effect on Object a with href = "", that is, the actual link address. This does not produce any effect on directly using object. In fact, in most cases, we use a instead of a: link. In general, the final effect will be the same.
<Br/> <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br/> <ptml xmlns = "http://www.w3.org/1999/xhtml"> <br/> <pead> <br/> <meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8 "/> <br/> <title> untitled document </title> <br/> <mce: style type =" text/css "> <! -- <Br/> a {color: #900} <br/> a: link {color: # 00F} <br/> --> </mce: style> <style type = "text/css" mce_bogus = "1"> <! -- <Br/> a {color: #900} <br/> a: link {color: # 00F} <br/> --> </style> <br/> </pead> <br/> <body> <br/> <a> red link </> <br/> <a href = "#" mce_href = "#"> blue link </a> <br/> </body> <br/> </ptml> <br/>
If a is used in red and a: link is used in blue, a: link will have an effect on Object a with href = "" that is, object a with the actual link address. This does not produce any effect on directly using object. In fact, in most cases, we use a instead of a: link. In general, the final effect will be the same.