上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: 1 边框 1 border-radius:圆角 ie9+ chrome firefox opera 2 box-shadow :边框阴影ie9+ chrome firefox opera 3 border-image : 边框图片chrome firefox 1 border-radius:5px;(圆角半径) -webkit-border-radius:5px;//chrome safari -ms-border-radius:5px;//ie -o-border-radius:5px;//opera -mos-border-radius;5px;//老版f... 阅读全文
posted @ 2014-04-06 11:18 菠萝君 阅读(346) 评论(0) 推荐(0)
摘要: Web Worker 是一个很有意思的东东简单理解一下0 new Worker("src"); 创建一个worker1 onmessage 接受信息2 postMessage 发送信息代码: demo.js 部分://postMessage("hello world!");onmessage = function (event) { var data = event.data; postMessage(data);}; 阅读全文
posted @ 2014-04-05 19:45 菠萝君 阅读(287) 评论(0) 推荐(0)
摘要: 一般我们的原型写法都是 var Father = function () { this.speed= 90; }; Father.prototype.move = function (speed) { console.log("原型"+speed); }; Father.prototype.start = function () { console.log(this.speed); }; var father = new Father();... 阅读全文
posted @ 2014-04-04 15:20 菠萝君 阅读(197) 评论(0) 推荐(0)
摘要: swipe插件真的是好简单,看代码就知道了先把swipe.js放上来,有空再拜读一下,看能否理解/* * Swipe 2.0 * * Brad Birdsall * Copyright 2013, MIT License **/function Swipe(container, options) { "use strict"; // utilities var noop = function() {}; // simple no operation function var offloadFn = function(fn) { setTimeout(fn || noop, 阅读全文
posted @ 2014-04-04 13:15 菠萝君 阅读(2010) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-04-01 22:36 菠萝君 阅读(200) 评论(0) 推荐(0)
摘要: 今天去x宝软件公司面试,遇到的几道笔试题,现场没做好,回来之后认真分析学习了一下。一下是题目和我的解答,如果你有更好的答案,评论一下贴出来共同进步1 外层宽度高度固定,内层宽度高度固定,内层垂直居中居中了2 外层宽度高度固定,内层高度不确定,内层垂直居中(ps:在ie7测试不成功,待解决,摘自网上),采取仿照table的属性,外层display:table,中层display:table-cell;vertical-align:center; 现在我们要使这段文字垂直居中显示! 使用table的例子,兼容 ... 阅读全文
posted @ 2014-03-31 19:05 菠萝君 阅读(341) 评论(1) 推荐(0)
摘要: 自己动手写了点简单的DOM操作,只是为了更加深刻里面的观念还有浏览器之间的区别直接上代码/* basic dom operation* Jackey* 2014-3-28* ie789 chrome firefox 下测试正常*///根据id获取元素function getById(id) { if (id) { return document.getElementById(id); } return null;}//根据name 获取元素 ie下只有input等表单元素才拥有name,未解决function getByName(name) { ... 阅读全文
posted @ 2014-03-28 11:56 菠萝君 阅读(269) 评论(0) 推荐(0)
摘要: 1 在d盘新建文件夹message执行命令 d:进入D盘 ,再执行express -e message如图:工程目录就会自动安装在message下面2 打开package.json添加"mongodb":"*",模块依赖3 切换到message目录下执行npm install网速太不给力了。下载了好久。试了好多次....坑爹的还在下载,待续... 阅读全文
posted @ 2014-03-28 09:45 菠萝君 阅读(538) 评论(0) 推荐(0)
摘要: 无标题文档 child1 child2 child3 阅读全文
posted @ 2014-03-27 22:51 菠萝君 阅读(295) 评论(0) 推荐(0)
摘要: 1{ "name": "Jackey", "sex": "male", "age": "21"}2[ { "name": "Jackey", "sex": "male", "age": "21" }, { "name": "Jackey", "sex": "male", &quo 阅读全文
posted @ 2014-03-27 08:45 菠萝君 阅读(163) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页