HTML5编程问题:为什么鼠标放到图片上不显示
html:<divclass="content"><divclass="pagepage3"><imgsrc="img/armoire.jpg"class="armoir...
html:
<div class="content">
<div class="page page3">
<img src="img/armoire.jpg" class="armoire"/>
<img src="img/shuao.png" class="shuao" />
<div class="report">内容</div>
CSS:
.shuao{
width: 80%;
height: 12%;
position: absolute;
top:8%;
left: 10%;
}
.report{
color: white;
position: absolute;
left: 13%;
bottom: 5%;
display: none;
}
.shuao:hover .report{
display: block;
} 展开
<div class="content">
<div class="page page3">
<img src="img/armoire.jpg" class="armoire"/>
<img src="img/shuao.png" class="shuao" />
<div class="report">内容</div>
CSS:
.shuao{
width: 80%;
height: 12%;
position: absolute;
top:8%;
left: 10%;
}
.report{
color: white;
position: absolute;
left: 13%;
bottom: 5%;
display: none;
}
.shuao:hover .report{
display: block;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询