摘要: ;(function (window) { var Sys = {}; var ua = navigator.userAgent.toLowerCase(); var s; (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : ... 阅读全文
posted @ 2015-02-05 16:31 开水中的糖 阅读(520) 评论(0) 推荐(0) 编辑
摘要: translateZ(z):表示相对于屏幕的前后位置。值越大元素离屏幕越近,值越小离的远。必须开启3D模式和设置3D透视效果才有作用。transform-styleperspective 阅读全文
posted @ 2015-01-19 22:41 开水中的糖 阅读(173) 评论(0) 推荐(0) 编辑
摘要: display: -webkit-box;-webkit-box-orient: horizontal;-webkit-box-pack: center;-webkit-box-align: center;放在需要垂直居中的父层。 阅读全文
posted @ 2015-01-19 15:23 开水中的糖 阅读(233) 评论(0) 推荐(0) 编辑
摘要: bowergrunt angularjs livereloadgulpangular tmodjs jadeAngular; Backbone; Console; Dir; Express; Fork; Grunt; Haslayout; Iconfont;Jsonp; Kissy; Local... 阅读全文
posted @ 2014-06-25 18:09 开水中的糖 阅读(693) 评论(0) 推荐(0) 编辑
摘要: 文本框中只能出现数字 去掉字符串中的空格 function str(str){ return str.replace(/\s/g,""); } 阅读全文
posted @ 2014-06-24 11:40 开水中的糖 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 图片上传插件一:jQuery File Upload链接地址:http://blueimp.github.io/jQuery-File-Upload/index.html图片放大插件一:Magnifier.js链接地址:http://mark-rolich.github.io/Magnifier.j... 阅读全文
posted @ 2014-05-24 11:59 开水中的糖 阅读(208) 评论(0) 推荐(0) 编辑
摘要: var jQuery = function () { return new jQuery.prototype.init();}jQuery.prototype = { init: function () { }, ceshi: function () { ret... 阅读全文
posted @ 2014-04-22 23:49 开水中的糖 阅读(251) 评论(0) 推荐(0) 编辑
摘要: javascript实现兼容addEvent方法/*---el:表示DOM对象name:表示事件名fn:表示需要调用的方法---*/1 function addEvent(el,name,fn){ 2 3 if(el.addEventListener) return el.addEventLi... 阅读全文
posted @ 2014-04-12 00:15 开水中的糖 阅读(490) 评论(0) 推荐(0) 编辑