1、块级元素
一般用来搭建网站架构、布局、承载内容……它包括以下这些标签:
address、blockquote、center、dir、div、dl、dt、dd、fieldset、form、h1~h6、hr、isindex、menu、noframes、noscript、ol、p、pre、table、ul...
分类:
Web程序 时间:
2014-08-11 21:33:13
阅读次数:
385
EK Template :bool bfs(int src, int des){ memset(pre, -1, sizeof(pre)); while(!que.empty()) que.pop(); pre[src] = 0; int index; que.push...
分类:
Web程序 时间:
2014-08-11 21:15:52
阅读次数:
268
题意:求两个点的最近公共祖先。
1A#include
#include
#include
#include
#define maxn 100010
using namespace std;
int fa[maxn],lev[maxn],pre[maxn],c1,c2;
vector son[maxn];
bool dfs(int rt,int obj)
{
for(int i...
分类:
其他好文 时间:
2014-08-10 15:42:40
阅读次数:
261
//逆置单链表,原地操作,只需要遍历一遍
private?ListNode?reverse(ListNode?head)
{
????ListNode?pre?=?null;
????ListNode?cur?=?head;
????while(cur!=null)
????{
???????...
分类:
其他好文 时间:
2014-08-10 13:12:50
阅读次数:
284
流程:
打开Sublime软件---首选项----浏览程序包-----找见"php.sublime-snippet"---然后修改内容为自己所需要的.
pre
text.html - source.php
pre
在
pre
text.html - source.php...
分类:
其他好文 时间:
2014-08-10 01:50:59
阅读次数:
296
第一部分 normalize.css 104至110行 code,????/*?编辑代码?*/
kbd,????/*?键盘输入的文本?*/
pre,
samp?{????/*?范例,sample的简写?*/
??font-family:?monospace,?monospace;????/*?...
分类:
其他好文 时间:
2014-08-09 23:25:29
阅读次数:
437
强制换行 1、word-break: break-all; 只对英文起作用,以字母作为换行依据。 2、word-wrap: break-word; 只对英文起作用,以单词作为换行依据。 3、white-space: pre-wrap; 只对中文起作用,强制换行。禁止换行 ...
分类:
Web程序 时间:
2014-08-09 18:09:38
阅读次数:
329
// BFS#include #include int visited[301][301]; // visited 已经访问过了int dic[8][2]={{2,1},{1,2},{-1,2},{-2,1},{-2,-1},{-1,-...
分类:
其他好文 时间:
2014-08-09 11:30:27
阅读次数:
196
NSUserDefaults可以存储NSString,NSNumber, NSDate, NSArray, NSDictionary,自定义类可以通过NSData的方式进行存储,当然要实现NSCoding这个protocol才 行,NSObject1. 系统会保存到该应用下的/Library/Pre...
分类:
其他好文 时间:
2014-08-07 12:41:09
阅读次数:
200