CSS盒子模型:
早期的网页设计主要是表格,后来主要是div+css
盒子模型:
1.边框:border:
border-top、border-bottom、border-left、border-right
2.内边距:padding:
padding-top、padding-bottom、padding-left、padding-right
3.外边距:margin:...
分类:
Web程序 时间:
2014-11-24 01:14:21
阅读次数:
222
Polycarpus likes giving presents to Paraskevi. He has bought two chocolate bars, each of them has the shape of a segmented rectangle. The first bar is...
分类:
其他好文 时间:
2014-11-23 23:06:07
阅读次数:
380
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:
其他好文 时间:
2014-11-23 17:19:58
阅读次数:
254
前言:要调整状态栏布局,需反编译systemui.apk。单卡机修改status_bar.xml和signal_cluster_view.xml,双卡机修改gemini_status_bar.xml和gemini_signal_cluster_view.xml。我的是联想a820双卡机一、状态栏显示...
分类:
移动开发 时间:
2014-11-23 15:51:08
阅读次数:
249
比如下面这段代码
s = 'foo'
d = {'a':1}
def f():
s = 'bar'
d['b'] = 2
f()
print s
print d
为什么修改字典d的值不用global关键字先声明呢?
这是因为,
在s = 'bar'这句中,它是“有歧义的“,因为它既可以是表示引用全局变量s,也可以是创建一个新的局部变量,所以在python中...
分类:
编程语言 时间:
2014-11-23 00:43:31
阅读次数:
194
错误信息:
Could not find class ** referenced from method **
05-21 22:51:22.548: E/dalvikvm(226): Could not find class 'org.ksoap2.serialization.SoapObject', referenced from method cn.hi.bar.api.Lo...
分类:
移动开发 时间:
2014-11-22 23:12:44
阅读次数:
274
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2014-11-22 14:45:18
阅读次数:
141
1、渐变色 从上到下,白色透明度100%到白色透明度0%渐变(注意为避免继承,新建元素,父元素relative,子元素absolute) background-image:linear-gradient(to bottom,rgba(255, 255, 255, 1),rgba(255, 255,....
分类:
Web程序 时间:
2014-11-21 13:57:42
阅读次数:
185
.arrow_box:after { border-color: rgba(136, 183, 213, 0); border-bottom-color: #ffffff; border-width: 30px; margin-left: -30px;}.arrow_box:before { bor...
分类:
其他好文 时间:
2014-11-21 13:54:42
阅读次数:
116
1 #include 2 3 int main(void) 4 { 5 int foo = 10, bar = 15; 6 printf("foo=%d, ", foo); 7 printf("bar=%d\n", bar); 8 ...
分类:
其他好文 时间:
2014-11-21 12:09:35
阅读次数:
220