Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".解题思路:用trim() 和splite("\\s+")把S...
分类:
其他好文 时间:
2015-10-11 06:44:34
阅读次数:
112
如何实现背景透明,文字不透明,兼容所有浏览器?我们平时调整的不透明度如图所示:实现透明的css方法通常有以下3种方式,以下是不透明度都为80%的写法:css3的opacity:x,x 的取值从 0 到 1,如opacity: 0.8css3的rgba(red, green, blue, alpha)...
分类:
Web程序 时间:
2015-10-10 17:02:59
阅读次数:
306
变量很容易理解:@nice-blue: #5B83AD;@light-blue: @nice-blue + #111;#header { color: @light-blue; }输出:#header { color: #6c94be; }甚至可以用变量名定义为变量:@fnord: "I am fn...
分类:
其他好文 时间:
2015-10-08 20:07:20
阅读次数:
168
1.Objectice-C code: 1 NSShadow *shadow = [NSShadow new]; 2 3 [shadow setShadowColor:[UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0]]; 4 5 [s.....
分类:
编程语言 时间:
2015-10-07 12:09:40
阅读次数:
355
leetcode -Sort ColorsGiven an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors...
分类:
其他好文 时间:
2015-10-05 12:58:10
阅读次数:
162
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ...
分类:
其他好文 时间:
2015-10-03 09:29:49
阅读次数:
203
Basic dropshadow Light blue dropshadow Blurred dropshadow with white text Close dropshadow Distant dropshadow
分类:
其他好文 时间:
2015-10-02 23:39:19
阅读次数:
223
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-10-01 22:58:42
阅读次数:
255
2648: SJY把件Time Limit:20 SecMemory Limit:128 MBSubmit:1180Solved:391[id=2648" style="color:blue; text-decoration:none">Submit][Status][Discuss]Descrip...
分类:
其他好文 时间:
2015-10-01 10:19:57
阅读次数:
247
1、用正则表达式实现字符串首尾空格删除功能。2、写一个hack样式实现在IE6、IE7、firefox下分别使用不同的颜色。background:blue;*background:red !important;_background:yellow;3、列出4个http状态码并解释含义。200:OK;...
分类:
Web程序 时间:
2015-10-01 10:17:47
阅读次数:
238