带:的都是伪类 伪类 是一个以冒号(:)作为前缀,被添加到一个选择器末尾的关键字,当你希望样式在特定状态下才被呈现到指定的元素时,你可以往元素的选择器后面加上对应的伪类(pseudo-class)。你可能希望某个元素在处于某种状态下呈现另一种样式,例如当鼠标悬停在元素上面时,或者当一个复选框被禁用或 ...
分类:
Web程序 时间:
2019-06-17 10:52:09
阅读次数:
198
Problem 42 https://projecteuler.net/problem=42 The nth term of the sequence of triangle numbers is given by, tn = ½n(n+1); so the first ten triangle n ...
分类:
其他好文 时间:
2019-06-16 13:36:00
阅读次数:
92
No. 19 Remove Nth Node From End of List (重点) Solution: 关键点是如何定位至倒数第n个节点。如下办法: 先从head (pre in code) 开始走至前第n+1个节点item (cur in code),这样子pre跟curm就相差n,再让pr ...
分类:
其他好文 时间:
2019-06-04 13:19:27
阅读次数:
102
1 NX9+VS2012 2 3 4 #include <uf.h> 5 #include <uf_tabnot.h> 6 #include <NXOpen/Part.hxx> 7 #include <NXOpen/PartCollection.hxx> 8 #include <NXOpen/Ses ...
分类:
其他好文 时间:
2019-05-31 21:13:14
阅读次数:
121
1.IE6/7兼容伪类 _1.CSS部分:一个有冒号,一个是空格分隔。前者IE8+及其他现代浏览器;后者为IE6-7准备的 #test:before, #test before{ content: attr(data-content); width: 0; height: 0; } _2.HTML部 ...
分类:
其他好文 时间:
2019-05-29 18:20:11
阅读次数:
290
链表题没法在本地打断点调试真的烦。。。不过好在这题简单 注意考虑要去除的元素在正数第一位的情况就好。 Runtime: 40 ms, faster than 88.15% of Python3 online submissions forRemove Nth Node From End of Lis ...
分类:
其他好文 时间:
2019-05-27 23:28:15
阅读次数:
128
难度: 中等 leetcode地址: https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/ 分析: 1. 这题解题思路也不难,两个指针fast, slow,fast先走n步,然后两个一起走,fast走到 ...
分类:
其他好文 时间:
2019-05-26 17:43:10
阅读次数:
89
Given a linked list, remove the *n*-th node from the end of list and return its head. ...
分类:
其他好文 时间:
2019-04-26 11:10:31
阅读次数:
148
1. id,class类,标签,相邻, 子,后代 , 通配, 属性选择器(a[rel="external"]) , 伪类选择器(a:hover,li:nth-child) 2. 可继承的属性: font-size,font-family,color, text-indent 3. 不可继承: mar ...
分类:
Web程序 时间:
2019-04-09 17:03:14
阅读次数:
133