一.@代表引用资源1.引用自定义资源。格式:@[package:]type/nameandroid:text="@string/hello"2.引用系统资源。格式:@android:type/name android:textColor="@android:color/opaque_red"注意:其...
分类:
移动开发 时间:
2014-11-23 15:49:18
阅读次数:
128
IE浏览器各版本的CSS Hack如下示例:.test{color:black;/*W3C*/color:red\9;/*IE6-IE10*/_color:black;/*IE6*/+color:black;/*IE7*/color:black\9\0;/*IE9IE10*/}通过这样的css,就....
分类:
Web程序 时间:
2014-11-23 13:05:43
阅读次数:
147
列表列表的初始化及对其首尾的访问:scala> val colors = List("red", "blue", "green")colors: List[String] = List(red, blue, green)scala> colors.headres15: String = redsca...
分类:
其他好文 时间:
2014-11-22 22:59:20
阅读次数:
270
local ret_status="%(?:%{$fg_bold[green]%}? :%{$fg_bold[red]%}? %s)"PROMPT='%(!.%{$fg_bold[blue]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[cyan]%}%(!.%1~....
分类:
其他好文 时间:
2014-11-22 17:14:34
阅读次数:
314
Python是一种面向对象、解释型计算机程序设计语言。被认为是比较好的胶水语言。至于其他的,你可以去百度一下。本文仅介绍python的安装和配置,供刚入门的朋友快速搭建自己的学习和开发环境。本人欢迎大神拍砖,邮箱:it_red@sina.com 本博文出处:http://itred.cnblogs....
分类:
编程语言 时间:
2014-11-22 15:58:29
阅读次数:
300
自定义错误消息的显示方式默认情况下,验证提示信息用label元素来显示, 并且会添加css class, 通过css可以很方便设置出错控件以及错误信息的显示方式。/* 输入控件验证出错*/form input.error { border:solid 1px red;}/* 验证错误提示信息*/fo...
分类:
Web程序 时间:
2014-11-22 15:47:59
阅读次数:
165
闭包例子var color = "blue"; function changeColor(){ var anotherColor = "red"; function swapColors(){ var tempColor = anotherColor; anotherColor = colo...
分类:
Web程序 时间:
2014-11-22 11:52:23
阅读次数:
161
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-Managing_Services_with_systemd-Targets.htmlViewingtheDefaultTargetTodeterminewhichtargetunitisusedbydefault,runthefollowingcommand:systemctlget-de..
分类:
其他好文 时间:
2014-11-21 16:30:31
阅读次数:
223
链接:点击打开链接
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent til...
分类:
其他好文 时间:
2014-11-21 16:19:59
阅读次数:
150
New Web Project
#dd{
width:200px;
height:200px;
background:red;
opa...
分类:
编程语言 时间:
2014-11-21 14:25:46
阅读次数:
186