1.问题的缘起考察下面的类结构定义public class Category { string _id; Category _parent; IList _children = new List(); public virtual str...
分类:
Web程序 时间:
2015-08-28 19:34:30
阅读次数:
271
前言 上一篇blog中,了解到measure过程对View进行了测量,得到measuredWidth/measuredHeight。对于ViewGroup,则计算出全部children的宽高进行求和。本篇来分析一下layout过程。layout综述 layout方法对一个View及它的后代分配s.....
分类:
移动开发 时间:
2015-08-27 21:08:46
阅读次数:
229
eg1:
// waitpid1.c
// 2015-08-26 Lucifer Zhang
// Using the waitpid function to reap zombie children in no
// particular order.
#include "csapp.h"
#define N 2
int main()
{
int status, i;
...
分类:
系统相关 时间:
2015-08-26 15:49:33
阅读次数:
255
DOM操作操作相关元素:里:children(),find("选择器")外:parent(),parents("选择器")下:next(),nextAll(选择器)上:prev(),prevAll("选择器")附加:集合操作first(),last(),eq(n)元素的添加、复制、替换、移除添加:a...
分类:
Web程序 时间:
2015-08-26 01:27:23
阅读次数:
205
水平居中 内联级或类似内联级的元素 如果需要居中的元素是内联元素(display为inline or inline-*),如text或a时,则可以将其放在块级父元素中,像这样: .center-children?{
??display:block;
??text-alig...
分类:
Web程序 时间:
2015-08-25 12:58:58
阅读次数:
265
今天说说那一套获取元素集合的一些方法:["children", "clone", "closest", "contents", "empty", "eq", "filter", "find", "first", "get", "has", "last", "not", "parent", "pare...
分类:
Web程序 时间:
2015-08-19 19:31:42
阅读次数:
142
继上一节,BeautifulSoup的高级应用 之 find findAll,这一节,主要讲解BeautifulSoup有关的其他几个重要应用函数。本篇中,所使用的html为:html_doc = """
The Dormouse's story
The Dormouse's story...
分类:
其他好文 时间:
2015-08-19 14:55:45
阅读次数:
127
Children of the Candy CornTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 11215Accepted: 4841DescriptionThe cornfield maze is a popular Hallo...
分类:
其他好文 时间:
2015-08-18 10:11:17
阅读次数:
113
来源:http://www.jb51.net/article/26195.htm总经一下前段时间用于的jQuery方法:find及children。需要的朋友可以参考下。首先看看英文解释吧:children方法:find方法:通过以上的解释,可以总结如下:1:children及find方法都用是用来...
分类:
其他好文 时间:
2015-08-17 15:14:48
阅读次数:
120
DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies, chainsaw-...
分类:
其他好文 时间:
2015-08-16 16:37:35
阅读次数:
112