随笔分类 -  前端常用代码

摘要:右侧划出 close 111 222 333 22 阅读全文
posted @ 2017-11-01 22:27 CorderBob 阅读(172) 评论(0) 推荐(0)
摘要:1.使用方法: a.复制下面这段代码到你的页面的头部的script标签的最前面。 b.根据设计稿大小,调整里面的最后两个参数值。 c.使用1rem=100px转换你的设计稿的像素,例如设计稿上某个块是100px*300px,换算成rem则为1rem*3rem。 //designWidth:设计稿的实 阅读全文
posted @ 2017-10-24 16:00 CorderBob 阅读(666) 评论(0) 推荐(0)
摘要:1. 弹出层3秒后消失: $(".btn").show(300).delay(2000).hide(300); 2. 加减操作 //加 $(".plus").click(function() { var mount = parseInt($(".amount").val()); if (mount 阅读全文
posted @ 2017-04-08 13:43 CorderBob 阅读(258) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 img弹出层 7 121 122 123 124 125 126 127 128 129 130 上传图像 131 x 132 133 134 ... 阅读全文
posted @ 2017-04-06 17:51 CorderBob 阅读(187) 评论(0) 推荐(0)
摘要:1 body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td { margin:0; padding:0; } 2 body, button, input, select, text... 阅读全文
posted @ 2017-03-22 08:26 CorderBob 阅读(235) 评论(0) 推荐(0)
摘要:网站标题 - Admin10000.com 阅读全文
posted @ 2017-03-22 08:24 CorderBob 阅读(6649) 评论(0) 推荐(0)
摘要:调用 阅读全文
posted @ 2017-03-09 22:31 CorderBob 阅读(112) 评论(0) 推荐(0)
摘要:web前端 阅读全文
posted @ 2016-04-15 14:43 CorderBob 阅读(183) 评论(0) 推荐(0)
摘要:本文会给你们展示50个jquery代码片段,这些代码能够给你的javascript项目提供帮助。其中的一些代码段是从jQuery1.4.2才开始支持的做法,另一些则是真正有用的函数或方法,他们能够帮助你又快又好地把事情完成。如果你发现你任何可以做得更好的地方的话,欢迎把你的版本粘贴在评论中!1. 如 阅读全文
posted @ 2016-04-05 16:20 CorderBob 阅读(113) 评论(0) 推荐(0)
摘要:function getOs(){ var OsObject = ""; if(navigator.userAgent.indexOf("MSIE")>0) { return "MSIE"; } if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ return "Firefox";... 阅读全文
posted @ 2016-04-05 16:19 CorderBob 阅读(741) 评论(0) 推荐(0)
摘要:动态加载数据绑定事件(ios没反应,需要另外添加一个空事件onclick="") $(document).on('click', '#list li', function() { //function code here. }); 遍历含有某个class的内容 $.each($(".itemlist 阅读全文
posted @ 2016-03-11 15:48 CorderBob 阅读(304) 评论(0) 推荐(0)