码迷,mamicode.com
首页 >  
搜索关键字:top    ( 21129个结果
css3 高度自适应
html,body{height:100%;} .container{ height:100%; display:-webkit-flex; -webkit-flex-direction:column;} #top{ -webkit-flex:1; background:#f00;} #bottom{-webkit-flex:1; background:#0f0;} <body> <div ...
分类:Web程序   时间:2015-06-23 13:54:46    阅读次数:194
Button
?通过修改控件的frame属性就可以修改控件在屏幕上的位置和尺寸?比如点击“向上”按钮,让按钮的y值减小即可- (IBAction)top:(UIButton *)sender { CGRect btnFrame = self.headBtn.frame; btnFrame.origin.y -= ...
分类:其他好文   时间:2015-06-23 13:22:32    阅读次数:100
CodeForces 550B Preparing Olympiad(DFS回溯)
【题目链接】:click here~~ 【题目大意】 一组题目的数目(n 【解题思路】: DFS+回溯。 先发一发比较拙的代码: #include using namespace std; const int N=1e5+10; int num[N],mum[N]; int n,m,q,t,l,r; int top,ans,cnt; void dfs(int sum,int d,in...
分类:其他好文   时间:2015-06-22 22:20:14    阅读次数:206
free命令
free命令相对与top提供了更简洁的方法查看系统内存使用情况。第一行 -- Mem(物理内存统计)total (507924) 物理内存总量used(450832) 总计分配给缓存(buffers和cached)使用的数量,可能部分缓冲并未实际使用free (57092) ...
分类:其他好文   时间:2015-06-22 19:20:56    阅读次数:161
尽量使用translate而不是改变top/left进行动画(翻译)
前言 本文翻译自Why Moving Elements With Translate() Is Better Than Pos:abs Top/left,本文有改动,添加了一些作者自己的理解,不当之处还请看客指出。翻译正文 目前我们对文档中的某个元素进行移动有两种方式, 1,使用trans...
分类:其他好文   时间:2015-06-22 19:08:14    阅读次数:151
Jquery中用offset().top和offsetTop的比较
今天,想测试一个div与顶部的距离,用的是.offsetTop,但是offsetTop获得的值,怎么都打印不出来。折腾了半天,打印的结果都是undefined,虽然网上很多资料都说返回的是数值。虽然这个函数永不了,但是黄显钦找到了一个可以替代offsetTop的函数。那就是jquery的offset...
分类:Web程序   时间:2015-06-22 17:47:19    阅读次数:200
栈的基本操作 栈和堆
#include#include#define LENGTH 100 //堆的初始分配的长度#define ADD_LEN 10 //堆栈增量typedef struct {//构造栈的数据类型 int *base; int *top; int stacksize;}SqStack;void Cr....
分类:其他好文   时间:2015-06-22 16:19:41    阅读次数:102
leetCode(21):Binary Tree Right Side View
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For example: Given the following binary tree, 1...
分类:其他好文   时间:2015-06-22 11:13:01    阅读次数:127
Min Stack
Description:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop(...
分类:其他好文   时间:2015-06-22 09:52:32    阅读次数:108
Django开发BBS---51网络课程笔记(2)
接着上节的内容,来添加前端的代码,http://4440271.blog.51cto.com/4430271/1663863首先,在http://v3.bootcss.com/getting-started/找到一个样式:这里使用http://v3.bootcss.com/examples/navbar-static-top/的样式:将页面下载下来,添加到:中,添加完成后,需要在setting..
分类:其他好文   时间:2015-06-22 07:38:12    阅读次数:183
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!