Sets the style of an a element when the link has been visited recently.
dhtml语法
HTML |
[A]:visited { sRules } |
---|
Scripting | N/A |
---|
DHTML可能的值
sRules | String that specifies one or more Cascading Style Sheets (CSS) attribute/value pairs. |
Remarks
The default value of the :visited pseudo-class is browser-specific. The time period used to define a recent visit also varies by browser.
The :visited pseudo-class is often with :active, :hover and :link, the pseudo-classes that affect the other states of a link.
microsoft® internet explorer 3.0 applies the value of the :link pseudo-class to the :visited pseudo-class.
DHTML代码范例
The following style rule uses the :visited pseudo-class to set the color attribute of visited links in a document.
<STYLE>
A:visited { color:blue }
</STYLE>
是否符合公共标准
This pseudo-class is defined in
CSS, Level 1 (CSS1) .
Applies To