码迷,mamicode.com
首页 >  
搜索关键字:top    ( 21129个结果
javascript 拖拽
拖拽的基本原理就是根据鼠标的移动来移动被拖拽的元素。鼠标的移动也就是x、y坐标的变化;元素的移动就是style.position的top和left的改变。当然,并不是任何时候移动鼠标都要造成元素的移动,而应该判断鼠标左键的状态是否为按下状态,是否是在可拖拽的元素上按下的。无标题文档知识点补充:set...
分类:编程语言   时间:2014-08-04 10:45:37    阅读次数:242
javascript 复合数据的定义和使用 ( 小例子 )
思路:主要是先要获取到三个 box 元素的 top 值 和 left 值,然后有复合数据进行存值,再进行数组值的位置移动来实现切换 box 位置效果;
分类:编程语言   时间:2014-08-04 10:39:16    阅读次数:210
[LeetCode] Triangle('Bottom-up' DP)
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:其他好文   时间:2014-08-03 22:59:56    阅读次数:259
jstack来分析。当linux出现cpu被java程序消耗过高时
我们使用jdk自带的jstack来分析。当linux出现cpu被java程序消耗过高时,以下过程说不定可以帮上你的忙:1.top查找出哪个进程消耗的cpu高21125 co_ad2 18 0 1817m 776m 9712 S 3.3 4.9 12:03.24 java5284 co_ad 21 0...
分类:编程语言   时间:2014-08-03 22:59:46    阅读次数:237
数据结构学习笔记之栈
栈(stack) 是限定仅在表尾进行插入或删除操作的线性表。因此,对栈来说,表尾端有其特殊含义,称为栈项(top),相应地,表头端称为栈底(bottom)。不含元素的空表称为空栈。...
分类:其他好文   时间:2014-08-03 18:09:45    阅读次数:313
关于Navigation的BarButtonItem的
(ios6.1)有两个controller在navigation stack里,A和B。A是B的previous view controller,现在top-level controller是B。要自定义B的backBarButtonItem。在B的viewDidLoad里添加:1 //ch...
分类:其他好文   时间:2014-08-03 17:58:45    阅读次数:222
.net编程:自动生成会员卡号
/// /// 自动生成会员卡号 /// void CardNumber() { string sql = string.Format("select top 1 cardId from cardInfo order by cardId desc"); DBHelper.cmd = new...
分类:Web程序   时间:2014-08-03 12:31:25    阅读次数:417
Triangle leetcode java
题目:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the....
分类:编程语言   时间:2014-08-03 04:40:04    阅读次数:351
js实现正方形颜色从下往上升的效果
无标题文档   $(function(){     interid=setInterval(Showgao,1);     var i=1;     $('#top').height(8);     $('#buttom').css('marginTop',42);     $('#buttom').css('background','#d6d6d6');     f...
分类:Web程序   时间:2014-08-02 15:33:43    阅读次数:212
Climbing Stairs leetcode java
题目:You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you....
分类:编程语言   时间:2014-08-02 12:19:43    阅读次数:389
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!