<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.wrap{
text-align: center;
}
.title{
display: inline-block;
padding: 5px 10px;
position: relative;
height: 50px;
line-height: 50px;
text-align: center;
border:1px solid #000;
cursor: pointer;
}
ul{
display: none;
position: absolute;
top: 60px;
left: -1px;
border:1px solid #000;
padding: 10px;
list-style: none;
border-top: none;
}
</style>
</head>
<body>
<div class="wrap">
<div class="title">
<span>客户服务</span>
<ul>
<li>展示一</li>
<li>展示二</li>
<li>展示三</li>
<li>展示四</li>
</ul>
</div>
</div>
jQuery移入移出事件
最新推荐文章于 2022-12-31 19:34:18 发布