模块隐藏/浮现

<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("button").click(function(){
    $("p").slideToggle();
  });
});
</script>
</head>
<body>
<p>这是一个段落。</p>
<button>切换</button>
</body>
</html>

效果图

slideToggle()---单击隐藏/浮现--jQuery--click() 方法

相关文章:

  • 2021-11-06
  • 2021-11-07
  • 2021-10-30
  • 2021-11-05
  • 2021-10-07
  • 2021-12-15
  • 2021-08-05
  • 2021-09-27
猜你喜欢
  • 2022-12-23
  • 2021-06-27
  • 2021-09-22
  • 2022-03-10
  • 2022-12-23
  • 2021-01-11
  • 2022-12-23
相关资源
相似解决方案