1.圆角设置 border-radius:15px 50px 30px 5px; /*四个值: 第一个值为左上角,第二个值为右上角,第三个值为右下角,第四个值为左下 角。 三个值: 第一个值为左上角, 第二个值为右上角和左下角,第三个值为右下角 两个值: 第一个值为左上角与右下角,第二... Read More
posted @ 2015-04-24 13:52 soft.push("zzq") Views(310) Comments(0) Diggs(0)
Name: Email: RESET form = {{user }} ... Read More
posted @ 2015-04-24 10:38 soft.push("zzq") Views(157) Comments(0) Diggs(0)
posted @ 2015-04-24 10:20 soft.push("zzq") Views(126) Comments(0) Diggs(0)
我么知道在css2.1之前,想让div这样的块级元素在同一行中出现必须使用float或者position而在2.1之后呢出现了 display:inline-block它可以使块级元素变为行级元素,这样我们就不用在使用float和clear了***使用inline-block时若出现多行默认是底部对... Read More
posted @ 2015-04-21 19:09 soft.push("zzq") Views(209) Comments(0) Diggs(0)
---题目前加图片---p:before{ content:url(xxx/xx.png);}//所有p的最前都有一个图标p.a:after{ content:url(xxx/xx.png);}//而含有类a的p最前和最后都有一个图标12345---题目前加标号---p:before{content... Read More
posted @ 2015-04-20 21:04 soft.push("zzq") Views(1118) Comments(0) Diggs(0)
---条件选择器:---.ccc[cusid*= value]{ backgroud-color:#0094ff;} //表示使用了class="ccc"元素自定义属性cusid的值包含value字符的即可使用如下样式。 [cusid^= value]{ backgroud-color:#0094... Read More
posted @ 2015-04-05 14:16 soft.push("zzq") Views(186) Comments(0) Diggs(0)
//使用mongoose查询文档所有结果时容易出现的问题ArticleContents.getAll = function(name, callback){ var query = {}; if(name){ query.name = n... Read More
posted @ 2015-04-01 20:18 soft.push("zzq") Views(283) Comments(0) Diggs(0)
var buf3 = new Buffer([1,2,3,4,-10,256],'utf8');//默认为utf8console.log(buf3[0]);//正常的范围是0~255console.log(buf3[4]);//如果为-10,那么值为256-10=246console.log(buf... Read More
posted @ 2015-03-18 10:46 soft.push("zzq") Views(167) Comments(0) Diggs(0)
var DSQ = setInterval(function(){ console.log('zzq');},1000);setTimeout(function(){ clearInterval(DSQ);//清除定时器,想要再次使用需重新创建},5000);setTimeout(fun... Read More
posted @ 2015-03-18 08:42 soft.push("zzq") Views(274) Comments(0) Diggs(0)
node中的事件优先级机制:console.log('第一笔!');process.nextTick(function() { console.log('吃个饭吧!'); setImmediata(function() { console.log('洗个头发1!'); });});s... Read More
posted @ 2015-03-17 20:57 soft.push("zzq") Views(191) Comments(0) Diggs(0)