html5想让鼠标移到一个图片的上方时另一个图片出现,可是为什么不显示
html5想让鼠标移到一个图片的上方时另一个图片出现,可是为什么不显示<!doctypehtml><htmllang="en"><head><metacharset="U...
html5想让鼠标移到一个图片的上方时另一个图片出现,可是为什么不显示<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<style>
.big{
display: none;
width: 500px;
height: 500px;
background-color: black;
position: fixed;
top:30%;
right: 0px;
}
.small{
width: 100px;
height: 100px;
background-color: yellow;
position: fixed;
top:50%;
right: 0px;
z-index: 10;
}
.small:hover .big{
display: block;
width: 500px;
height: 500px;
background-color: black;
position: fixed;
top:30%;
right: 0px;
}
</style>
</head>
<body>
<div class="big"></div>
<div class="small"></div>
</body>
</html> 展开
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<style>
.big{
display: none;
width: 500px;
height: 500px;
background-color: black;
position: fixed;
top:30%;
right: 0px;
}
.small{
width: 100px;
height: 100px;
background-color: yellow;
position: fixed;
top:50%;
right: 0px;
z-index: 10;
}
.small:hover .big{
display: block;
width: 500px;
height: 500px;
background-color: black;
position: fixed;
top:30%;
right: 0px;
}
</style>
</head>
<body>
<div class="big"></div>
<div class="small"></div>
</body>
</html> 展开
2个回答
2018-01-04
展开全部
<style>
.big{
display: none;
width: 500px;
height: 500px;
background-color: black;
position: absolute;
top:0;
right: 100px;
}
.small{
width: 100px;
height: 100px;
background-color: yellow;
position: fixed;
top:50%;
right: 0px;
z-index: 10;
}
.small:hover .big{
display: block;
}
</style>
<div class="small">
<div class="big"></div>
</div>
2018-01-04
展开全部
上方时另一个
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询