This is a very important change in iOS 7: the status bar is no longer a separate bar. It’s now something that simply gets drawn on top of your view co...
分类:
移动开发 时间:
2014-11-05 14:39:58
阅读次数:
135
本篇文章主要内容来自于Android Doc,我翻译之后又做了些加工,英文好的朋友也可以直接去读原文。http://developer.android.com/guide/topics/ui/actionbar.htmlAction Bar是一种新増的导航栏功能,在Android 3.0之后加入到系...
分类:
移动开发 时间:
2014-11-05 10:48:50
阅读次数:
269
定义和用法margin 简写属性在一个声明中设置所有外边距属性。该属性可以有 1 到 4 个值。 margin: top right bottom left margin-top: margin-right: margin-bottom: margin-left:
分类:
其他好文 时间:
2014-11-05 00:21:14
阅读次数:
222
题目:poj 2553 The Bottom of a Graph
题意:大概题意是给出一个有向图,求强连通缩点以后出度为0的点。
分析:入门题目,先强连通缩点,然后表示出度为0的,枚举输出即可。
#include
#include
#include
#include
#include
using namespace std;
const int N = ...
分类:
其他好文 时间:
2014-11-04 19:50:21
阅读次数:
172
题目描述:
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 following triangle
[
[2],
...
分类:
其他好文 时间:
2014-11-04 19:41:37
阅读次数:
205
本文有关栈的介绍部分参考自网站数据结构。 1. 栈 1.1 栈的定义 栈(Stack)是限制仅在表的一端进行插入和删除运算的线性表。 (1)通常称插入、删除的这一端为栈顶(Top),另一端称为栈底(Bottom)。 (2)当表中没有元素时称为空栈。 (3)栈为后进先出(Last In...
分类:
编程语言 时间:
2014-11-04 17:14:21
阅读次数:
275
非模态刷新父页面:window.opener.location.reload();模态刷新父页面:window.dialogArguments.location.reload();先来看一个简单的例子:下面以三个页面分别命名为frame.html、top.html、bottom.html为例来具体说...
分类:
编程语言 时间:
2014-11-04 14:27:10
阅读次数:
201
代码拍上,赶时间的童鞋拿着用就好:div {width: 1000px; height: 500px;position: absolute; left: 0; top: 0; right: 0; bottom: 0;margin: auto; /* 重点在于 auto */}博主之前用的方式也是不错...
分类:
其他好文 时间:
2014-11-04 13:06:26
阅读次数:
108
my_bar.xml //配置进度条的图片@drawable/ok @drawable/no 为图片保存在drawable文件夹中布局文件中进度条配置 android:id="@+id/bar" android:layout_width="fill_pare...
分类:
移动开发 时间:
2014-11-04 10:57:56
阅读次数:
289
在iOS 7中,苹果引入了一个新的属性,叫做[UIViewController setEdgesForExtendedLayout:],它的默认值为UIRectEdgeAll。当你的容器是navigation controller时,默认的布局将从navigation bar的顶部开始。这就是为什么...
分类:
其他好文 时间:
2014-11-04 10:38:21
阅读次数:
133