<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- Bootstrap CSS -->
<link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<!-- jQuery -->
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<!-- Bootstrap JavaScript -->
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
.parent {
margin-top: 100px;
margin-left: 100px;
height: 20px;
width: 100px;
background-color: burlywood;
text-align: center;
}
.son{
min-height: 30px;
width: 150px;
background-color:burlywood;
text-align: center;
position: relative;
top:-83px;
left:100%;
}
.hid{
display: none;
}
</style>
</head>
<body>
<div class="img-rounded parent">
2019-12-...
<div class="img-rounded son">
2019-12-12<br/>
2019-12-12<br/>
2019-12-12<br/>
</div>
</div>
</body>
</html>
<script>
$('.son').addClass('hid');
$('.parent').mouseover(function(){
$('.son').removeClass('hid');
});
$('.parent').mouseleave(function(){
$('.son').addClass('hid');
});
</script>
js---弹出框
猜你喜欢
转载自blog.csdn.net/qq_39115469/article/details/102570129
今日推荐
周排行