码迷,mamicode.com
首页 >  
搜索关键字:position    ( 9475个结果
Shader
Shaders are simple programs that describe the traits of either a vertex or a pixel. Vertex shaders describe the traits (position, texture coordinates, colors, etc.) of a vertex, while pixel shade...
分类:其他好文   时间:2014-08-02 15:30:43    阅读次数:377
IE中a标签绝对定位时才生的bug
对a链接的display设置为block,以便整个标签可以点击。但是,如果对该标签设置为position:absolute后,会发现在ie6、ie7下有时点击无效,ie8下有效(ie8标准),使用zoom:1方式也无法解决问题。解决方案1、使用position:relative而不是position...
分类:其他好文   时间:2014-08-02 15:18:13    阅读次数:252
Search Insert Position
问题:一个数应该插入到有序数组的哪个位置class Solution {public: int searchInsert(int A[], int n, int target) { int i; for(i=0;i<n;i++) if(target<=A[i]) b...
分类:其他好文   时间:2014-08-01 22:57:22    阅读次数:204
【css】修正ie6下不支持position:fixed
Document 我是固定 头部 主题内容
分类:Web程序   时间:2014-08-01 19:31:02    阅读次数:202
CSS3 perspecitve属性
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
原声JS瀑布流加延迟加载
瀑布流 *{ margin: 0px; padding:0px; } .box{ position: relative; top:0px; } ul li{ list-style-type: none; position...
分类:Web程序   时间:2014-08-01 16:17:01    阅读次数:294
Unity3D中目标相对自身的前后左右方位判断
在做rpg类游戏的过程中,经常遇到要判断周围怪物相对自身的方位 1.判断目标在自己的前后方位可以使用下面的方法:    Vector3.Dot(transform.forward, target.position)        返回值为正时,目标在自己的前方,反之在自己的后方 2.判断目标在机子的左右方位可以使用下面的方法:    Vector3.Cross(tra...
分类:其他好文   时间:2014-08-01 16:10:11    阅读次数:224
iOS开发Swift篇—(五)元组类型
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
ListView系列(七)——Adapter内的onItemClick监听器四个arg参数 (转)
举个例子你会理解的更快: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
获取div滚动条的宽度
获取滚动条的宽度:function getScrollWidth() { var noScroll, scroll, oDiv = document.createElement('div'); oDiv.style.cssText = 'position:absolute; top:-1...
分类:其他好文   时间:2014-07-31 13:06:06    阅读次数:237
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!