显示 隐藏 //show hide 显示和隐藏的动画效果 几个div逐个出来 //slow 对应的是600毫秒 慢速 // normal 对应400 正常 // fast 对应200 快速 show和hide 宽高透明度 可以传参数,设置动画速度(时间值)不传值的时候是直接显示和隐藏 传值之后是改变 ...
分类:
Web程序 时间:
2016-11-14 15:28:29
阅读次数:
165
hide: 隐藏 $('img').hide(); show:显示 $('img').show(); 单选多选下拉菜单 选中状态checked ($('.radio:checked')); 单选 ($('.checkbox:checked'));多选 ($('.option:checked'));下 ...
分类:
Web程序 时间:
2016-11-13 19:10:11
阅读次数:
171
1.隐藏与显示:hide()和show(),toggle() **隐藏: $("#hide").click(function(){ $("p").hide(); }); **显示: $("#show").click(function(){ #("p").show(); }); **切换:toggle ...
分类:
Web程序 时间:
2016-11-13 14:04:25
阅读次数:
248
jQuery常见的动态效果: 隐藏/显示效果: 1.(1):隐藏,显示:通过 jQuery,使用 hide() 和 show() 方法可以用来隐藏和显示 HTML 元素。 (2):隐藏/显示的速度: 语法: $(selector).hide(speed, callback); $(selector) ...
分类:
Web程序 时间:
2016-11-11 19:28:50
阅读次数:
263
<script> $(function () { $("#btn").click(function () { //$("#div").hide(2000); //在2秒内隐藏 //$("#div").show(2000); //在2秒内显示 //$("#div").fadeIn(2000); //增 ...
分类:
其他好文 时间:
2016-11-11 09:40:21
阅读次数:
146
一、显示和隐藏 hide()、show() 1、show():显示被选的元素 2.hide():隐藏被选的元素 3.toggle():对被选元素进行隐藏和显示的切换 语法: 可选的 speed 参数规定隐藏/显示的速度,可以取以下值:"slow"、"fast" 或毫秒。 可选的 callback 参 ...
分类:
Web程序 时间:
2016-11-11 00:20:37
阅读次数:
142
JQ 菜单栏 <script> $(function () { $("#btnNav").toggle(function () { $("#nav").hide(); }, function () { $("#nav").show(1000); }) }) </script> ...
分类:
其他好文 时间:
2016-11-08 16:25:38
阅读次数:
197
<script>$(function(){$(".dropdown").click(function(e){$(".dropdown").removeClass(‘open‘);$(this).toggleClass(‘open‘);});//$("body").bind("click",function(evt){//if(evt.target!=$(‘.dropdown-menu‘).get(0)){//$(‘.dropdown-menu‘).hide();//}//});$(document..
分类:
Web程序 时间:
2016-11-07 20:11:10
阅读次数:
187
动画: 1、show(),hide() 2、.stop() .slideDown(); 向下。 .stop().slideUp(); 向上 (可以做下拉) .stop() 执行之前加 停止 <script type="text/javascript">$("#div1").hover(functio ...
分类:
Web程序 时间:
2016-11-07 09:47:36
阅读次数:
234
var time=setInterval(add,2000);//定时器 function add(){ jQuery(".sisi li").first().hide(); jQuery(".sisi li").last().show(); var s =jQuery(".sisi li").fi ...
分类:
其他好文 时间:
2016-11-05 09:43:08
阅读次数:
167