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, ...
分类:
其他好文 时间:
2017-03-06 20:38:04
阅读次数:
159
区分出IE6的hack写法1.区别IE6、7与FF/IE8: JavaScript Code复制内容到剪贴板 background:blue;*background:orange; 引用显示效果:IE 6/7:orangeFF/IE8:blue原理:FF/IE8不支持*开头,而IE6/7都支持。 2 ...
分类:
Web程序 时间:
2017-03-05 15:56:37
阅读次数:
201
语法 标签选择器li { color: red;} ID选择器#li{ color: yellow;} 唯一的,同一页面只能有一个 优先级高于类选择器 类选择器.li{ color: blue;} 优先级高于标签选择器 通用选择器 优先级最低*{} 后代选择器 div li{ co... ...
分类:
Web程序 时间:
2017-02-27 19:11:45
阅读次数:
401
<!DOCTYPE html><html><head><style>/*1.不加doctype 低版本解析不同2.id 的属性不能为数字3.文件编码和设置字体相符*/ div{ height:200px; background:blue; }/*每个div独占一行*/ #main{ width:20 ...
分类:
Web程序 时间:
2017-02-24 19:22:19
阅读次数:
275
<p class="title">A20 Banana Pi Development Board Module - Deep Blue</p> /*单行文本*/.title{width: 150px;height: 25px;line-height: 25px;overflow: hidden;wh ...
分类:
其他好文 时间:
2017-02-23 16:15:17
阅读次数:
203
#import "ViewController.h" #import "UIColor+Hex.h" #define XMGColor(r,g,b) [UIColor colorWithRed:(r) / 256.0 green:(g) / 256.0 blue:(b) / 256.0 alpha:... ...
分类:
其他好文 时间:
2017-02-23 00:08:58
阅读次数:
165
UIColor *color1=[UIColor colorWithRed:155/255 green:255/255 blue:255/255 alpha:1];//方法1,使用 静态方法创建color _view1.backgroundColor=color1; UIColor *color2=... ...
分类:
移动开发 时间:
2017-02-21 19:14:46
阅读次数:
208
1、比较下面两个图形: 1.1、<rect x="100" y="100" width="40" height="80" stroke="blue" stroke-width="5" fill="none" fill-opacity="0"/> 1.2、<rect x="200" y="100" w ...
分类:
其他好文 时间:
2017-02-20 12:58:20
阅读次数:
181
The students of the HEU are maneuvering for their military training. The red army and the blue army are at war today. The blue army finds that Little ...
分类:
编程语言 时间:
2017-02-19 00:26:57
阅读次数:
230
RGB色彩模式是工业界的一种颜色标准,通过红(Red)、绿(Green)、蓝(Blue)三种颜色搭配可以显示出非常丰富的色彩来。目前我们程序中看到的这种 RGB 其实也可以简单的当做 256 色(0~255)来看。总共能搭配出来的颜色有 256*256*256 = 16777216 种。 我们用最简 ...
分类:
其他好文 时间:
2017-02-16 22:02:09
阅读次数:
197