欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jQuery簡(jiǎn)單實(shí)現(xiàn)隱藏以及顯示特效

 更新時(shí)間:2015年02月26日 11:54:36   投稿:hebedich  
這篇文章主要介紹了jQuery簡(jiǎn)單實(shí)現(xiàn)隱藏以及顯示特效,需要的朋友可以參考下

簡(jiǎn)單的 隱藏以及顯示的代碼如下:

復(fù)制代碼 代碼如下:

<!DOCTYPE html>
<html>
<head>
<script src="/jquery/jquery.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">如果點(diǎn)擊“隱藏”按鈕,我就會(huì)消失。</p>
<button id="hide" type="button">隱藏</button>
<button id="show" type="button">顯示</button>
</body>
</html>

效果很不錯(cuò),代碼也很簡(jiǎn)單,希望大家能夠喜歡。

相關(guān)文章

最新評(píng)論