css 甘道夫
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 甘道夫相关的知识,希望对你有一定的参考价值。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Gandalf</title>
<link rel="stylesheet" href="Gandalf.css" />
</head>
<body>
<div class="photo">
<img src=http://images.innoveduc.fr/integration_gandalf.png alt="gandalf" id="gandalf">
<h1>Reward <span>1000</span><br> golden coins</h1>
<h2>Gandalf</h2>
</div>
</body>
</html>
html
{
background-color:black;
}
#gandalf
{
box-shadow:6px 6px 6px white;
border-radius:10px;
}
.photo:hover
{
opacity: 1;
}
.photo,h1
{
background-color:white;
text-align: center;
position: absolute;
font-size:30px;
top:80px;
width: 250px;
height: 80px;
left: 100px;
border: 2px solid;
border-radius: 20px;
box-shadow:6px 6px white;
opacity:0.5;
z-index: 2;
}
.photo:hover h1
{
opacity: 0;
}
span
{
color: orange;
}
h2
{
color: white;
position: absolute;
top: 220px;
width: 20px;
height: 0px;
z-index: 2;
font-size: 100px;
left: 70px;
}
.photo:hover h2
{
position: absolute;
top: 400px;
width: 20px;
z-index: 2;
font-size: 60px;
left: 130px;
}
以上是关于css 甘道夫的主要内容,如果未能解决你的问题,请参考以下文章
css 甘道夫
css 甘道夫
css 甘道夫
css 甘道夫想要
html 甘道夫
html 甘道夫