<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
#one{
width: 500px;
height: 200px;
background: yellow;
}
#two{
width: 500px;
height: 200px;
background:dodgerblue;
position: absolute;
display: none;
}
</style>
</head>
<body>
<button id="clab" type="button" οnclick="myFunction()">展开</button>
<div id="one">我交钱了优先展示</div>
<div id="two">我要滑动隐藏</div>
</bo
jquery 做一个收起和展开的动画 slideToggle
最新推荐文章于 2022-06-08 15:37:30 发布