今天为了实现隔行变色,我在css里写: 有一个页面有效果,另一个页面没效果,怎么也找不到原因。。。各种尝试各种清缓存都不行,,,好无奈 然后 wd过来帮我调 他问:js里没写么 我说没啊 他也试着清缓存 不管用。 他说css里这样写不对 odd是js的写法 我突然想起来 我好像在页面的js文件里初始 ...
分类:
其他好文 时间:
2017-08-21 11:56:10
阅读次数:
206
如果对你有用,复制粘贴,拿走不谢~ <style type="text/css">div:nth-child(2n){ background: #4a229a; height: 50px;}div:nth-child(2n+1){ background: #dd172f; height: 50px; ...
分类:
其他好文 时间:
2017-08-19 22:22:40
阅读次数:
126
1.1 C++ STL ? STL容器: set, map, vector, priority_queue, queue, stack, deque, bitset? STL算法: sort, unique, nth_element, reverse, rotate, next_permution, ...
分类:
其他好文 时间:
2017-08-18 20:41:24
阅读次数:
291
列思路,以后填坑。 a. 证明:最小生成树是瓶颈生成树 证略 b. 给定图G和整数b,线性时间内判断瓶颈生成树T值是否不超过b 解:DFS或BFS遍历图G,跳过所有权值大于b的边,最后若有节点未遍历到,则T值大于b,否则不超过b c. 求瓶颈生成树T值 1. 求出边权值的中位数(类似于求nth el ...
分类:
编程语言 时间:
2017-08-14 22:26:30
阅读次数:
622
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 ...
分类:
其他好文 时间:
2017-08-14 17:26:33
阅读次数:
106
nth-child是表示选择当前父元素下所有元素中的第几个元素,而nth-of-type则表示选择父元素某一个给定类型的第几个元素, 例如 选择p父元素下的第一个p元素,可以这么写: parent>p:first-child 或者 parent>p:first-of-type,第一种写法在父元素下第 ...
分类:
Web程序 时间:
2017-08-11 13:25:58
阅读次数:
174
#Ulist li:nth-of-type(odd){ margin-left: 20px;}奇数行 #Ulist li:nth-of-type(even){margin-left: 10px;}偶数行 1 2 3 4 5 6 ...
分类:
Web程序 时间:
2017-08-10 15:09:20
阅读次数:
532
题目: 查找斐波纳契数列中第 N 个数。 所谓的斐波纳契数列是指: 前2个数是 0 和 1 。 第 i 个数是第 i -1 个数和第 i -2 个数的和。 斐波纳契数列的前10个数字是: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 ... 注意事项 The Nth fibonac ...
分类:
其他好文 时间:
2017-08-10 11:45:45
阅读次数:
107
li做浮动布局,左右高度不一致会出现错乱 解决: li:nth-of-type(odd){clear:both;} ...
分类:
其他好文 时间:
2017-08-10 10:26:48
阅读次数:
135
Hints of sd0061 Problem Description sd0061, the legend of Beihang University ACM-ICPC Team, retired last year leaving a group of noobs. Noobs have no ...
分类:
其他好文 时间:
2017-08-05 11:07:54
阅读次数:
166