码迷,mamicode.com
首页 >  
搜索关键字:red    ( 13693个结果
CSS 盒子模型
内边距,外边距,边框盒模型--边框(一)盒子模型的边框就是围绕着内容及补白的线,这条线你可以设置它的粗细、样式和颜色(边框三个属性)。如下面代码为div来设置边框粗细为2px、样式为实心的、颜色为红色的边框:div{ border:2px solid red;}上面是border代码的缩写...
分类:Web程序   时间:2014-09-18 18:39:14    阅读次数:240
功能超级丰富的彩色贪吃蛇,有道具,有等级!
彩色的贪吃蛇实现,功能强大,有等级模块,道具功能,后面有效果预览,先上代码: console.h #include //颜色定义 #define FWHITE FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE //白色前景 #define FRED FOREGROUND_INTENSIT...
分类:其他好文   时间:2014-09-18 13:22:24    阅读次数:276
Sort Colors
[leetcode]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, white and blue.Here, we will use the integers 0, 1, and 2 to represent the color red, white, and...
分类:其他好文   时间:2014-09-18 13:21:43    阅读次数:164
Java中的枚举Enum
public class TestEnum { /*最普通的枚举*/ public enum ColorSelect { red, green, yellow, blue; } /* 枚举也可以象一般的类一样添加方法和属性,你可以为它添加静态和非静态的属...
分类:编程语言   时间:2014-09-17 23:03:32    阅读次数:230
hdu-1312 Red and Black
http://acm.hdu.edu.cn/showproblem.php?pid=1312 题意:在图中给定一个人的起点,问他能达到的最多地方是多少,'.'表示能走,’#‘不能走。 思路:找出起点,直接扩展就好了。 #include #include char map[21][21]; int dir[4][2]={-1,0,1,0,0,1,0,-1}; int n,m,count; v...
分类:其他好文   时间:2014-09-17 18:49:02    阅读次数:223
关于Ubuntu下apt的一些用法及和yum的比较
Fedora和Red Hat有yum安装软件,Ubuntu有apt工具。apt简单的来说,就是给Ubuntu安装软件的一种命令方式。一、apt的相关文件/etc/apt/sources.list设置软件包的获取来源/etc/apt/apt.confapt配置文件/etc/apt/apt.conf.d...
分类:其他好文   时间:2014-09-17 13:31:32    阅读次数:362
javascript事件对象之事件切换器
html代码jstest 测试div css代码@charset "utf-8";.red{width:100px; height:100px; background:#f00;}.blue{width:100px; height:100px; background: blue;...
分类:编程语言   时间:2014-09-17 00:58:01    阅读次数:329
自动化运维工具之ansible
当维护的机器很多时,有时需要批量部署。 一、什么样的情形需要批量部署 1、操作系统的安装 常见的有collber,red hat satelite(redhat系统专用)。 2、操作系统的配置 常见的有cfengine,puppet,chef,func。其中puppet最受欢迎 3、批量程序的部署 ...
分类:其他好文   时间:2014-09-16 21:46:01    阅读次数:511
Css+Div摘录集-css hack
*以下内容属于网上摘录css hack:*html (ie6) 注意标签前添加与属性前*color:red不同,属性前添加ie6/7都可解析*html{color:green}===html{_color:red;} html{*color:red;}*+html (ie7)这种写法只有ie7能解析...
分类:Web程序   时间:2014-09-16 12:29:00    阅读次数:132
Linux下VNC的安装和开机启动
1.确认VNC是否安装默认情况下,Red Hat Enterprise Linux安装程序会将VNC服务安装在系统上。确认是否已经安装VNC服务及查看安装的VNC版本[root@testdb ~]# rpm -q vnc-servervnc-server-4.1.2-9.el5[root@testd...
分类:系统相关   时间:2014-09-16 09:15:50    阅读次数:273
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!