|
|
|
|
<html>
<head>
<style>
.popular{
color: blue;
font-family: "Times roman";
font-size: 40px;
padding-bottom: 10px;
padding-left: 10px;
padding-right: 15px;
padding-top:5px;
line-height: 1.5;
font-weight: bold;
}
.popular a:link{
color: red;
}
.popular a:visited{
color: green;
}
.popular a:active{
color: yellow;
}
.popular a:hover{
color: black;
}
</style>
</head>
<body>
<div class = "popular"><a href = "asd.php">Ссылка</a></div>
</body>
</html>
|
Вопрос: почему в Firefox цвет ссылки первоначально устанавливается зеленый, а не красный, когда ссылку еще не нажимали.
В IE и Опере все нормально. | |
|
|
|
|
|
|
|
для: Лена
(12.09.2008 в 10:23)
| | Потому, что вероятно вы по ней ходили в FireFox, а в IE и Опере - нет. | |
|
|
|
|
|
|
|
для: Лена
(12.09.2008 в 10:23)
| | Порядок приписывания стилей для ссылок:
a:link{
}
a:visited{
}
a:hover{
}
a:active{
}
Попробуйте так! | |
|
|
|