首先说first-child与last-child,这两个选择器很容易明白,就是父元素下的第一个子元素和最后一个子元素。而nth-child和nth-last-child则是父元素下指定序号的子元素,甚至第偶数个、奇数个子元素精选样式的制定。/*选择器写法示例*/nth-child(n) //正数第...
分类:
Web程序 时间:
2014-11-09 23:31:29
阅读次数:
273
微软在2014年5月12日的TechEd大会上宣布将会发布下一代ASP.NET框架ASP.NET vNext的预览。此次发布的ASP.NET框架与以前相比发生了根本性的变化,凸显了微软“云优先”(cloud-first)的新战略思想。Scott Hanselman发布博客对ASP.NET vNext...
分类:
Web程序 时间:
2014-11-09 23:29:01
阅读次数:
176
转载自:http://blog.csdn.net/niushuai666/article/details/6734403函数lower_bound()在first和last中的前闭后开区间进行二分查找,返回大于或等于val的第一个元素位置。如果所有元素都小于val,则返回last的位置举例如下:一个...
分类:
编程语言 时间:
2014-11-09 21:58:50
阅读次数:
184
1 2 First //第一页3 {if $pagerInfo.currentPage > 1} //如果当前页大于1,则有pre链接4 Pre5 {else}6 Pre7 {/if}8 index+1} //index从0开始计数10 {$pindex}11 {/section}12 {i...
分类:
其他好文 时间:
2014-11-09 20:44:40
阅读次数:
195
Ctrl + Alt + t -----> open terminal Ctrl + Shift + t ----> open a table on the terminal Alt + NUMBER -----> NUMBER=1 : switch the first table of the terminal; NUMBER=2 : switch the third table of t...
分类:
其他好文 时间:
2014-11-09 19:37:26
阅读次数:
168
insert first when deptno=10 then into dept01(id) values(deptno) when deptno=20 then into dept02(id) values(deptno) else into d...
分类:
其他好文 时间:
2014-11-09 19:23:55
阅读次数:
139
题目:Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Update (2014-11-02):The...
分类:
编程语言 时间:
2014-11-09 06:16:02
阅读次数:
221
Ubuntu 14.04 LTS is out, loads of new features have been added. Here are some procedures I followed to install CUDA 6.0 on my DELL Inspiron.First of a...
分类:
系统相关 时间:
2014-11-09 00:49:56
阅读次数:
300
一:实现之前先说一所find_first_of姊妹函数
(1)find_first_of(string &str, size_type index = 0):
查找在字符串中第一个与str中的某个字符匹配的字符,返回它的位置。搜索从index正向开始,如果没找到就返回string::npos
(2) find_first_not_of(cstring &str, size_typ...
分类:
编程语言 时间:
2014-11-08 22:11:35
阅读次数:
221
题目来源:树中的最长路解题思路:枚举每一个点作为转折点t,求出以t为根节点的子树中的‘最长路’以及与‘最长路’不重合的‘次长路’,用这两条路的长度之和去更新答案,最终的答案就是这棵树的最长路长度。只要以类似后序遍历的方式依次访问每个结点,从下往上依次计算每个结点的first值和second值,我就能...
分类:
其他好文 时间:
2014-11-08 22:05:53
阅读次数:
335