很久没来了,那今天就先来点同 链接的吧
Document
h1{
color:blue;
}
h2{
font-size: 12px;
}
p{
text-indent: 2em;
color: #259;
font-style: italic;
}
蓝色啦
首行缩进2字符
发现有什么不同了吗
本来二级标题会有那么小吗
效果...
分类:
其他好文 时间:
2015-04-14 23:21:08
阅读次数:
233
第一种方法:绝对定位 三列布局 三列布局1 one three two .wrap { position: relative;}.one{ width: 40px; background: blue;}.two...
分类:
其他好文 时间:
2015-04-14 14:33:23
阅读次数:
96
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Update (2015-02-12):
For C programmers: Try to solve it in-place in O(1...
分类:
其他好文 时间:
2015-04-13 11:01:46
阅读次数:
141
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 ...
分类:
其他好文 时间:
2015-04-12 17:48:54
阅读次数:
131
定义一个Tuplelet color = (1.0,1.0,1.0,1.0)switch color{case (0.0,0.5...1.0,let blue,_): //匹配第一个值为0.0第二个值为0.5到1.0第三四值为任意,并将第三个值传给blue变量 println("Blue is \....
分类:
编程语言 时间:
2015-04-11 17:36:31
阅读次数:
168
(一)综合属性的有很多例如:backgroundborderfor(var i=0;i oDiv.style.backgroundColor='blue'; alert(oDiv.style.backgroundPosition); //10px10px
分类:
其他好文 时间:
2015-04-11 16:03:57
阅读次数:
130
#header {
height:100px;
width:600px;
background:blue;
margin:0px auto; /*上下外边距是0px,左右外边距是自动 即:左右居中*/
}
#main {
/*height:500px;*/
wi...
分类:
其他好文 时间:
2015-04-10 22:07:39
阅读次数:
131
匿名对象 例如:new Car().color="blue"匿名对象调用属性没有意义,调用后立即变为垃圾。但是可以调用方法时有效匿名对象使用方式一:当对对象的的方法只调用一次时,可以用匿名对象来完成,这样比较简化。如果对一个对象进行多个成员调用时,必须给这个对象取个名字匿名对象使用方式二:可以将匿名...
分类:
其他好文 时间:
2015-04-10 17:36:56
阅读次数:
113
题目:
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...
分类:
其他好文 时间:
2015-04-10 11:27:26
阅读次数:
129
P84-P137页,这一章看的真久,这个月事太多了。有些内容在代码注释里没提出来了1、JS强大的数组类型,元素类型任意,提供了非常多的操作数组的方法和属性 1 /* 2 数组类型 3 */ 4 5 //stack 6 var colors = ['red','blue']; 7 c...
分类:
编程语言 时间:
2015-04-09 23:13:00
阅读次数:
167