MM.div1{ position: relative; height: 150px; width: 150px; margin: 0px; padding:2px; border: 1px solid black; perspective:550; -webkit-perspective:550;...
分类:
Web程序 时间:
2014-08-01 18:32:02
阅读次数:
200
瀑布流
*{
margin: 0px;
padding:0px;
}
.box{
position: relative;
top:0px;
}
ul li{
list-style-type: none;
position...
分类:
Web程序 时间:
2014-08-01 16:17:01
阅读次数:
294
在做rpg类游戏的过程中,经常遇到要判断周围怪物相对自身的方位
1.判断目标在自己的前后方位可以使用下面的方法:
Vector3.Dot(transform.forward, target.position)
返回值为正时,目标在自己的前方,反之在自己的后方
2.判断目标在机子的左右方位可以使用下面的方法:
Vector3.Cross(tra...
分类:
其他好文 时间:
2014-08-01 16:10:11
阅读次数:
224
iOS开发Swift篇—(五)元组类型一、元组类型介绍1.什么是元组类型元组类型由 N个 任意类型的数据组成(N >= 0),组成元组类型的数据可以称为“元素”示例:let position = (x : 10.5, y : 20) // position有2个元素,x、y是元素的名称let per...
分类:
移动开发 时间:
2014-08-01 15:59:11
阅读次数:
277
举个例子你会理解的更快:X, Y两个listview,X里有1,2,3,4这4个item,Y里有a,b,c,d这4个item。如果你点了b这个item。如下:public void onItemClick (AdapterView parent,View view,int position,long...
分类:
其他好文 时间:
2014-07-31 20:20:17
阅读次数:
205
获取滚动条的宽度:function getScrollWidth() { var noScroll, scroll, oDiv = document.createElement('div'); oDiv.style.cssText = 'position:absolute; top:-1...
分类:
其他好文 时间:
2014-07-31 13:06:06
阅读次数:
237
最近项目中用到了遮罩层,在这里总结下以备下次使用。 首先,遮罩应全屏,需要设置div的样式为: 1 position:absolute; 2 top:0%; /**遮罩全屏top,left都为0,width,height为100%**/ 3 left:0%; 4 ...
分类:
其他好文 时间:
2014-07-30 12:07:23
阅读次数:
280
CSS代码: .floatDiv { right: 0; bottom: 50%; position: absolute; z-index: 100; margin-right: 10px; } 代码使用: 浮动DIV 代码效果:
分类:
Web程序 时间:
2014-07-30 11:41:33
阅读次数:
181
微软近期Open的职位:Position: Senior SDE-- Mobile Products Android/iOS/WP Senior DeveloperContact Person: Winnie Wei (wiwe@microsoft.com)Location: BeijingRole...
分类:
移动开发 时间:
2014-07-30 03:16:52
阅读次数:
301