一个Windows API SetROP2(int nDrawMode)的使用该函数的主要的作用是根据nDrawMode设置的方式重新设定绘图的方式,下面就不同的nDrawMode值具体解释绘图模式是如何改变的。首先就nDrawMode的取值有以下的情况:R2_BLACK Pixel is alwa...
分类:
其他好文 时间:
2014-10-26 10:18:11
阅读次数:
269
#box{width:832px;height:832px;margin:0 auto;border:1px solid red;}
.col{width:50px;height:50px;border:1px solid #fff;float:left;background:url(xin.jpg) no-repeat;}
...
分类:
编程语言 时间:
2014-10-25 17:23:21
阅读次数:
192
Sort ColorsGiven 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 ...
分类:
其他好文 时间:
2014-10-24 18:38:49
阅读次数:
258
每天一个JavaScript实例-获取元素当前高度
#date{width:90%;height:25%;padding:10px;background: red;}
window.onload = function(){
var height = getHeight();
console.log(height);
}
function getHeight(){
var height...
分类:
编程语言 时间:
2014-10-24 13:05:02
阅读次数:
181
我们在前端布局的时候,会偶尔发现,在具有inline/inline-block属性的元素间存在一小段间隙,网上有些文章说这个间隙是6px,但我觉得应该是一个空格的宽度。这里以inline-block为例:下面是一些代码及其相应的效果图:CSS:span{ background:red;...
分类:
其他好文 时间:
2014-10-24 12:27:58
阅读次数:
198
/***** Selector Hacks ******//* IE6 and below */* html #uno { color: red }/* IE7 */*:first-child+html #dos { color: red }/* IE7, FF, Saf, Opera */html...
分类:
Web程序 时间:
2014-10-23 22:20:32
阅读次数:
275
一. 出现背景:
在JDK1.5之前,我们定义常量是这样的:public static final String RED = “RED”;
在JDK1.5中加入了枚举类型,我们可以把相关的常量分组到一个枚举类中:
public enum Color {
RED, GREEN, BLUE;
}
使用的时候可以这样:Color c = Color.RED
二. 枚举特点:
1...
分类:
编程语言 时间:
2014-10-23 19:22:45
阅读次数:
223
Black BoxTime Limit:1000MSMemory Limit:10000KTotal Submissions:7770Accepted:3178DescriptionOur Black Box represents a primitive database. It can save ...
分类:
其他好文 时间:
2014-10-23 15:44:34
阅读次数:
209
hdu 5073 Galaxy (数学+推导)——black的专栏 —— waShaXiu...
分类:
其他好文 时间:
2014-10-23 09:34:50
阅读次数:
108
本来前几天我已经安装了一个Red hat 的企业版,只可惜它不提供数据源,软件我可以自己安装,但是依赖我不可能完全解决,所以决定换系统,最后还是选择了ubuntu。一如既往的下载系统,然后使用u盘制作启动盘,一切制作完成,只等待最后的安装了。
本来一切都很美好,也能够从U盘进行引导,可以分区,最后就是点击安装了。就在这个时候到了选择时区界面了,当我点击了一下,屏幕黑掉了,这是怎么回事,刚开始以为...
分类:
系统相关 时间:
2014-10-22 11:03:13
阅读次数:
294