Atitit.隔行换色 变色 css3 结构性伪类选择器 1.1. css3隔行换色扩展阅读 1 1.2. 结构伪选择器 1 1.3. jQuery 选择器2 1.1. css3隔行换色扩展阅读 原理就是利用结构伪类选择器 .list_div tr:nth-of-type(odd){backgrou ...
分类:
Web程序 时间:
2016-04-29 22:17:38
阅读次数:
468
经典题。双指针,一个指针先走n步,然后两个同步走,直到第一个走到终点,第二个指针就是需要删除的节点。唯一要注意的就是头节点的处理,比如,1->2->NULL, n =2; 这时,要删除的就是头节点。 ...
分类:
其他好文 时间:
2016-04-29 07:08:14
阅读次数:
264
语法:ROW_NUMBER()OVER(PARTITIONBYCOLUMN<针对排名的字段>ORDERBYCOLUMN<需要排名的字段>(desc<倒序>))SELECT*,Row_Number()OVER(partitionbydeptidORDERBYsalarydesc)rankFROMemployeewhererank<=20;可查处以deptid字段分组的salary值最大的前20名
分类:
其他好文 时间:
2016-04-28 12:32:39
阅读次数:
135
1.数字性过滤 $("tr:first") //选择所有tr元素的第一个 $("tr:last") //选择所有tr元素的最后一个 $("td:parent") //选择所有的以td为父节点的元素数组 $("ul li:nth-child(2)"),$("ul li:nth-child(odd)") ...
分类:
Web程序 时间:
2016-04-27 18:28:33
阅读次数:
165
下面用的是jquery方法,请加载jquery插件 主要代码:nth-child(3n+2)其中N表示倍数,2是偏移的位置数,自己调整即可 ...
分类:
Web程序 时间:
2016-04-25 14:48:38
阅读次数:
473
Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After rem ...
分类:
其他好文 时间:
2016-04-23 18:12:45
阅读次数:
134
思路:第一时间想到的肯定是通过添加计数器解决这个问题,但是问题产生了,链表具有单向性,统计总数,还是计算当前数目都在效率上面很吃亏。 借用快慢指针的思想。可以安排两个同速指针,但是他们存在先后顺序,就可以解决这个问题。 ...
分类:
其他好文 时间:
2016-04-23 10:11:28
阅读次数:
178
表格 1、基本类 .table {width/margin-bottom/} {padding/border-top} 2、条纹表格 .table-striped {nth-of-type(odd):background-color} 3、边框表格 .table-border {border} 4、 ...
分类:
其他好文 时间:
2016-04-21 13:29:24
阅读次数:
89
Given a linked list, remove the nth node from the end of list and return its head. Example Given linked list: 1->2->3->4->5->null, and n = 2. After re ...
分类:
其他好文 时间:
2016-04-21 10:02:34
阅读次数:
106
Given a linked list, remove the nth node from the end of list and return its head. For example, Note:Given n will always be valid.Try to do this in on ...
分类:
其他好文 时间:
2016-04-18 06:35:08
阅读次数:
158