随笔分类 -  Jquery

javascriptDOM库
摘要:css html js 阅读全文
posted @ 2017-01-18 17:37 xuanPhoto 阅读(159) 评论(0) 推荐(0) 编辑
摘要:css html js 阅读全文
posted @ 2017-01-18 17:31 xuanPhoto 编辑
摘要:css *{margin: 0; padding: 0;list-style: none;} .box {width: 500px;height: 300px;border: 1px solid #000;background:lightgray;margin:100px auto;position 阅读全文
posted @ 2017-01-18 17:24 xuanPhoto 编辑
摘要:css *{margin: 0; padding: 0;list-style: none;} span{width: 200px;height: 100px;border: 1px solid #000;position: absolute; left: 0;top: 0; background-c 阅读全文
posted @ 2017-01-18 17:21 xuanPhoto 编辑
摘要:对非动画的实现排队,比如这个css()是要放在回调函数里才能,让前面的动画执行完成后在进行实现 html css 阅读全文
posted @ 2017-01-18 16:48 xuanPhoto 阅读(266) 评论(0) 推荐(0) 编辑
摘要:$('input').triggerHandler('focus'); 阅读全文
posted @ 2017-01-18 16:42 xuanPhoto 阅读(178) 评论(0) 推荐(0) 编辑
摘要:或者通过a来点击b 阅读全文
posted @ 2017-01-18 16:34 xuanPhoto 阅读(133) 评论(0) 推荐(0) 编辑
摘要://dom对象 var odiv = document.getElementById('box'); //dom对象转化成JQ对象, 在通过原生的方法获取到元素后,给它加上$() //$(odiv).css('color','red') //JQ对象 //把JQ对象转化成dom对象 //$('... 阅读全文
posted @ 2017-01-18 16:30 xuanPhoto 编辑
摘要:on绑定多个事件,off解绑事件,one事件只执行一次 on除了能够处理未来事件,还可以对事件进行委托处理 $('div').on('click', 'p', function(event)(也就是通过处理父元素,让子元素产生变化) 阅读全文
posted @ 2016-12-22 09:29 xuanPhoto 阅读(219) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示