Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/css/wp-settings.php on line 468 Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/css/wp-settings.php on line 483 Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/css/wp-settings.php on line 490 Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/css/wp-settings.php on line 526 Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/css/wp-includes/cache.php on line 103 Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/css/wp-includes/query.php on line 21 Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/css/wp-includes/theme.php on line 618 Fix Blog - CSS Справочник » visited

visited

visited

Браузер Internet Explorer Netscape Opera Safari Mozilla Firefox
Версия 5.5 6.0 7.0 7.0 8.0 7.0 8.0 9.0 2.0 3.0 1.7 1.0 2.0 3.0
Поддерживается Да Да Да Да Да Да Да Да Да Да Да Да Да Да

Краткая информация

CSS CSS1
Применяется К ссылкам (тег <A>)
Аналог HTML <body VLINK="#RRGGBB">
Ссылка на спецификацию http://www.w3.org/TR/CSS21/selector.html#link-pseudo-classes

Описание

Псевдокласс visited применяется к ссылкам, уже посещенные пользователем, и задает для них стилевое оформление.

Синтаксис

A:visited { … }

Аргументы

Нет.

Пример

Валидный HTML Валидный CSS

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>visited</title>

<style type="text/css">
a:link {
color: #0000d0; /* Цвет ссылок */
}
a:visited {

color: #900060; /* Цвет посещенных ссылок */
}
</style>
</head>
<body>
<p><a href="link1.html">Посещенная ссылка</a></p>

<p><a href="link2.html">Непосещенная ссылка</a></p>
<p><a href="link3.html">Непосещенная ссылка</a></p>
</body>

</html>

Результат данного примера показан на рис. 1.

Рис. 1

Рис. 1. Результат использования псевдокласса visited

Filed under visited