上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 58 下一页
摘要: jQuery元素动画animate()用法 <button>www.96net.com.cn</button> 1,基本用法 $("button").click(function(){ $("div").animate({left:'250px'}); }); 2, animate() - 操作多个 阅读全文
posted @ 2020-03-28 10:24 学无边涯 阅读(343) 评论(0) 推荐(0) 编辑
摘要: jQuery动画上下滑动slideDown() slideUp() slideToggle()用法 <button>www.hongjingcs.com</button> 1,jQuery slideDown() 向下方法 $("#flip").click(function(){ $("#panel 阅读全文
posted @ 2020-03-28 10:13 学无边涯 阅读(556) 评论(0) 推荐(0) 编辑
摘要: jQuery动画隐藏和显示 hide() show() toggle()用法 <div>www.cnmibee.com</div> 1,jQuery hide() 和 show() $("#hide").click(function(){ $("p").hide(); }); $("#show"). 阅读全文
posted @ 2020-03-28 10:07 学无边涯 阅读(264) 评论(0) 推荐(0) 编辑
摘要: jQuery删除元素的方法 remove() empty() <div id="div1" style="height:100px;width:300px;border:1px solid black;background-color:yellow;"> <p>www.96net.com.cn</p 阅读全文
posted @ 2020-03-27 18:49 学无边涯 阅读(579) 评论(0) 推荐(0) 编辑
摘要: jQuery添加元素的方法 append() prepend() after() before() 1,append()用法 $("p").append("http://www.hongjingcs.com/"); 2,prepend()用法 $("p").prepend("http://www.c 阅读全文
posted @ 2020-03-27 18:44 学无边涯 阅读(199) 评论(0) 推荐(0) 编辑
摘要: jQuery元素css尺寸方法 jQuery 提供多个处理尺寸的重要方法: width() height() innerWidth() innerHeight() outerWidth() outerHeight() 1,jQuery width() 和 height() 方法 $("button" 阅读全文
posted @ 2020-03-27 15:28 学无边涯 阅读(124) 评论(0) 推荐(0) 编辑
摘要: jQuery 操作元素的CSS方法 addClass() - 向被选元素添加一个或多个类 removeClass() - 从被选元素删除一个或多个类 toggleClass() - 对被选元素进行添加/删除类的切换操作 css() - 设置或返回样式属性 1,addClass() $("button 阅读全文
posted @ 2020-03-27 15:10 学无边涯 阅读(264) 评论(0) 推荐(0) 编辑
摘要: Jquery设置获取DOM元素属性 1, attr() $("button").click(function(){ $("#runoob").attr("href","www.96net.com.cn"); }); 2, 可以传递匿名函数 $("button").click(function(){ 阅读全文
posted @ 2020-03-26 13:33 学无边涯 阅读(484) 评论(0) 推荐(0) 编辑
摘要: Jquery设置获取DOM元素的内容 html() text() val() 例如 <p>www.96net.com.cn</p> <input type="text" name="aa" value=""> 1,html()用法 包含html元素 获取内容 $("p").html() 设置内容 $ 阅读全文
posted @ 2020-03-26 13:23 学无边涯 阅读(475) 评论(0) 推荐(0) 编辑
摘要: jquery的引入及网页页面三种写法 1,jquery的引入方式 官网下载压缩包 远程加载 cdn加速 2,如何书写jquery页面代码 $代替jquery使用 第一种, $("p").css() 第二种, $(document).ready(function(){ alert("www.96net 阅读全文
posted @ 2020-03-25 15:16 学无边涯 阅读(1694) 评论(0) 推荐(0) 编辑
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 58 下一页