Answer the question
In order to leave comments, you need to log in
The hover pseudo class does not work, I work in sublime text 3, what should I do?
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style34.css">
<meta charset="utf-8">
<title>Эффект наведения</title>
<style>
a.btn {
background-image: url(1.psd)
width:300px;
height:300px;
}
a.btn:hover {
background-image: url(2.png)
}
</style>
</head>
<body>
<h1>Тест наведения мышки на ссылку</h1>
<a href="a" class="btn"></a>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
First, do not use ";" after "background-image: url(1.psd)", this is most likely a bug.
Secondly, this is more advice than a solution, it is better to write css code in a separate file
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question