jQuery隨便控制任意div隱藏的方法
更新時間:2013年06月28日 17:23:27 作者:
這篇文章介紹了jQuery隨便控制任意div隱藏的方法,有需要的朋友可以參考一下
復制代碼 代碼如下:
<!DOCTYPE html>
<html>
<head>
<style>
div { background:#ece023; width:30px;
height:40px; margin:2px; float:left; }
</style>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
<div>a</div>
<div>b</div>
<div>c</div>
<div>d</div>
<div>e</div>
<div>f</div>
<script>
$("div").click(function () {
$(this).hide(1000);
});
</script>
</body>
</html>
相關文章
js構造函數(shù)constructor和原型prototype原理與用法實例分析
這篇文章主要介紹了js構造函數(shù)constructor和原型prototype原理與用法,結合實例形式分析js構造函數(shù)constructor和原型prototype基本原理、功能、使用方法及操作注意事項,需要的朋友可以參考下2020-03-03BootStrap自定義popover,點擊區(qū)域隱藏功能的實現(xiàn)
下面小編就為大家分享一篇BootStrap自定義popover,點擊區(qū)域隱藏功能的實現(xiàn)方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2018-01-01