K.Bokoff: a:active {background-image}...

Beitrag lesen

Hallo.

Ich habe mir eine Test-datei geschrieben um zu testen, ob Effekte mit dem Hintergrundbild fiúnktionieren und sehe leider nix. Was habe ich falsch gemacht?

8<----------------8<------------------8<

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>

<style type="text/css">

body{margin:10px;}

a:active
{
background-image: url( 'link-active.jpg' );
background-position: center center;
background-attachment: fixed;
background-repeat: no-repeat;
}

a:focus
{
background-image: url( 'link-over.jpg' );
background-position: center center;
background-attachment: fixed;
background-repeat: no-repeat;
}

a:hover
{
background-image: url( 'link-hover.jpg' );
background-position: center center;
background-attachment: fixed;
background-repeat: no-repeat;
}
</style>
</head>

<body>
<a href="#">Something</a>
</body>
</html>

8<----------------8<------------------8<