交流群:291 256 444
网页知识

jQuery 效果 - 隐藏和显示

作者:admin 来源: 日期:2013/6/9 15:41:52 人气:164 加入收藏 评论:0 标签:

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="/theme/default/js/jquery-1.4.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("#hide").click(function(){
  $("p").hide();
  });
  $("#show").click(function(){
  $("p").show();
  });
});
</script>
</head>
<body>
<p id="p1">如果点击“隐藏”按钮,我就会消失。</p>
<button id="hide" type="button">隐藏</button>
<button id="show" type="button">显示</button>
</body>
</html> 

本文网址:http://demo.eycms.cn/wyzs/152.html
读完这篇文章后,您心情如何?
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
更多>>网友评论
发表评论

网站首页 | 注册协议 | 会员中心 | 在线留言 | Tags | RSS地图

Copyright © Eycms网站信息管理系统 版权所有  点击查看更多方式>>>