老师请您帮忙检查一下代码
相关代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>过渡效果实战课</title>
<style>
*{
padding:0;
margin:0;
}
a{
text-decoration: none;
}
.imge{
width:600px;
height:200px;
margin:100px auto;
border: 1px solid #000;
position: relative;
}
.imge .info img{
width:600px;
height:200px;
}
.imge .info .box{
width: 600px;
height: 40px;
color:white;
position: absolute;
bottom:0px;
text-align: center;
line-height: 40px;
background-color: rgba(0,0,0,.5);
opacity: 0;
transition: opacity 1s linear 0s;
}
.imge .into img:hover .box{
opacity:100%;
}
</style>
</head>
<body>
<div class="imge">
<div class="info">
<img src="images/bb3.jpg">
<div class="box">
<p>清华大学自习室</p>
</div>
</div>
</div>
</body>
</html>
问题描述:
老师我想实现过渡实战课中的碰到照片就显示下方文字为什么显示不成功呢?请您帮忙检查一下谢谢
7
收起
正在回答 回答被采纳积分+1
2回答


恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星