Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh...
分类:
其他好文 时间:
2015-04-22 11:18:11
阅读次数:
94
.demo{color:red;/*所有现代浏览器*/color:green9;/*所有IE浏览器*/color:#CC0\0;/*IE8-9浏览器*/color:#F0F\9\0;/*ie9*/*color:red;/*IE6-7浏览器*/+color:blue;/*IE7浏览器*/_color:orange;/*IE6浏览器*/}@-moz-documenturl-prefix(){.demo{color:#897}/*allfirefox*/}@media..
分类:
其他好文 时间:
2015-04-21 18:35:14
阅读次数:
121
js 面向对象,挺好玩的,整好上次用jquery 实现瀑布流有兼容性问题,而且是在google 上,就重新用js 写了一个,这里使用了ajax ,就把ajax 单独封装起来了。
js 面向对象有几种实现方式:
1 原始方式:对象的属性可以在对象创建后动态定义
var oCar = new Object;
oCar.color = "blue";
oCar.doors = 4;
oCa...
分类:
Web程序 时间:
2015-04-20 11:17:39
阅读次数:
217
颜色是作图不可少的概念,常用的标准有 RGB 和 HSL,D3 提供了创建颜色对象的方法,能够相互转换和插值。RGB色彩模式是通过对红(Red)、绿(Green)、蓝(Blue)三个颜色通道相互叠加来得到各式各样的颜色。三个通道的值的范围都为0~255,因此总共能表示16777216(256 * 256 * 256)种,即一千六百多万种。几乎包括了人类所能识别的所有颜色,是最广泛也是最容易理解的颜...
分类:
Web程序 时间:
2015-04-19 19:29:24
阅读次数:
116
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".For C programmers: Try to solv...
分类:
其他好文 时间:
2015-04-17 18:05:36
阅读次数:
108
Given an input string, reverse the string word by word.For example, Given s = "the sky is blue", return "blue is sky the".Update (2015-02-12): For C p...
分类:
其他好文 时间:
2015-04-17 09:41:26
阅读次数:
116
设置,读取,删除 var odate=new Date(); odate.setDate(odate.getDate()+14); document.cookie='user=blue;expires='+odate; function setCookie(name...
分类:
其他好文 时间:
2015-04-16 19:47:02
阅读次数:
140
自定义一个类,继承View,直接上代码了,比较简单public class MyRing extends View { private List listWave;// 波纹list private int[] colors = { Color.BLUE, Color.GREEN, Color.YE...
分类:
移动开发 时间:
2015-04-15 19:06:06
阅读次数:
152
7693. Cards
Constraints
Time Limit: 15 secs, Memory Limit: 256 MB
Description
There are many blue cards and red cards on the table. For each card, an integer number greater than 1 is...
分类:
其他好文 时间:
2015-04-15 09:47:29
阅读次数:
233
Reverse Words in a String
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Update (2015-02-12):
For C program...
分类:
其他好文 时间:
2015-04-14 23:22:16
阅读次数:
167