Problem Description
Teacher Mai has a kingdom with the infinite area.
He has n students guarding the kingdom.
The i-th student stands at the position (xi,yi), and his walking speed is vi.
...
分类:
其他好文 时间:
2014-08-14 20:48:09
阅读次数:
192
1、absolute属性:英文直译成汉语的解释有:绝对,独立的。显然在做为css中position属性的值时“绝对”这个意思更恰当一些。他的作用是:生成绝对定位的元素,相对于static 定位以外的第一个父元素进行定位。元素的位置通过 "left", "top", "right" 以及 "botto...
分类:
其他好文 时间:
2014-08-14 01:12:57
阅读次数:
265
问题的答案非常简单:#parent { position: relative; z-index: 1; }#pseudo-parent { position: absolute; } /* no z-index allowed */#pseudo-parent:after { position: a...
分类:
Web程序 时间:
2014-08-13 18:33:16
阅读次数:
269
坐标系统
坐标系统在Unity3D开发过程中具有非常重要的作用,是游戏对象定位、移动、缩放、旋转等操作的基础。坐标系统包含以下基本概念:
三维向量(Vector3):
用于表示三维坐标空间的向量和点,可进行向量运算。
世界坐标(World Space):
相对于整个世界空间建立坐标系,使用全局坐标(通过Transform.position获取)。其X轴正方向指向屏幕右侧,Y轴...
分类:
其他好文 时间:
2014-08-13 13:09:06
阅读次数:
374
Reverse a linked list from position m to n. Do it in-place and in one-pass.For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2->...
分类:
其他好文 时间:
2014-08-13 00:50:34
阅读次数:
247
$('.F_box_2').hover( function(){ $(this).find(".make_reply").css({"color":"#c00","text-decoration":"underline","background-position":"12px -147px"}); ...
分类:
其他好文 时间:
2014-08-12 18:29:54
阅读次数:
189
def select_sort(list):
for i in range(len(list)):
position = i
for j in range(i,len(list)):
if list[position] > list[j]:
position = j
temp = list[i]
list[i] = list[position]
list[pos...
分类:
编程语言 时间:
2014-08-12 17:25:34
阅读次数:
236
点评:用了overflow:hidden 会影响 list-style,即当ul 中的li 的overflow 为hidden的时候,list-style不起作用,不显示前面的点、圈等样式,在ul或li内加入样式:list-style-position: inside; 即可实际上用了overflo...
分类:
其他好文 时间:
2014-08-12 17:02:34
阅读次数:
206
.pop_overlay{ width: 100%; height: 100%; background: #c2c2c2; opacity: 0.5; filter:alpha(opacity=50); position: fixed; z-index: 1; left: 0; top:0; dis...
分类:
其他好文 时间:
2014-08-12 16:47:14
阅读次数:
189
1? 在异步加载之前的代码的和普通加载代码一样,只需要在GirdView的Adapter的public View getView(int position, View convertView, ViewGroupparent)方法使用异步加载的方式返回ImageView。 2? 如果能把加载过...
分类:
其他好文 时间:
2014-08-12 10:33:34
阅读次数:
381