一,CSS3 选择器分类 二,选择器语法 1,基本选择器语法 2,层次选择器语法 3,动态伪类选择器语法 4,目标伪类选择器 5,UI元素状态伪类选择器语法 6,结构伪类选择器使用语法 注:(1),“ul>li:nth-child(3)”表达的并不是一定选择列表ul元素中的第3个子元素li,仅有列表 ...
分类:
Web程序 时间:
2017-06-26 11:30:04
阅读次数:
184
一、:nth-child
1.1说明
:nth-child(n)选择器匹配属于其父元素的第N个子元素,不论元素的类型。n可以是数字、关键词或公式。
注意:如果第N个子元素与选择的元素类型不同则样式无效!
1.2示例
<style>
div>p:nth-child(2){
color:red;
}
</style>
&..
分类:
Web程序 时间:
2017-06-24 20:58:52
阅读次数:
295
一、:nth-child 1.1 说明 :nth-child(n)选择器匹配属于其父元素的第N个子元素,不论元素的类型。n可以是数字、关键词或公式。 注意:如果第N个子元素与选择的元素类型不同则样式无效! 1.2 示例 二、:nth-of-type 2.1 说明 :nth-of-type(n)选择器 ...
分类:
Web程序 时间:
2017-06-24 19:51:29
阅读次数:
176
Coded triangle numbers Problem 42 The nth term of the sequence of triangle numbers is given by, tn = ½n(n+1); so the first ten triangle numbers are: 1 ...
分类:
其他好文 时间:
2017-06-22 13:26:53
阅读次数:
153
max 循环出的参数给func,func的返回值给key,然后比较那个返回值max(salary,key=func) 匿名函数:max(salary,key=lamba x:salaries[x]) 递归调用: 在调用一个函数的过程中,直接或间接的调用该函数本身。 1.必须要有明确的结束条件. 2. ...
分类:
其他好文 时间:
2017-06-22 00:20:29
阅读次数:
124
数据库部分 1、用两种方式根据部门号从高到低,工资从低到高列出每个员工的信息。 employee: eid,ename,salary,deptid; select * from employee order by deptid desc,salary 2、列出各个部门中工资高于本部门的平均工资的员工 ...
分类:
数据库 时间:
2017-06-21 13:43:37
阅读次数:
164
group by语法可以根据给定数据列的每个成员对查询结果进行分组统计,最终得到一个分组汇总表。 SELECT子句中的列名必须为分组列或列函数。列函数对于GROUP BY子句定义的每个组各返回一个结果。 某个员工信息表结构和数据如下: id name dept salary edlevel hire ...
分类:
其他好文 时间:
2017-06-21 11:21:50
阅读次数:
118
一 static 修饰属性、方法、块、内部类 static被称为静态,可以用来修饰类的属性或者方法。 static属性可以使用对象调用,也可以直接用类名调用。 例如: public class ssss { String name; double salary; static int count=1 ...
分类:
其他好文 时间:
2017-06-20 20:19:32
阅读次数:
138
Given a linked list, remove the n th node from the end of list and return its head. For example, Note: Given n will always be valid.Try to do this in ...
分类:
其他好文 时间:
2017-06-19 22:04:40
阅读次数:
125
In the card game poker, a hand consists of five cards and are ranked, from lowest to highest, in the following way: High Card: Highest value card.One ...
分类:
其他好文 时间:
2017-06-16 16:39:29
阅读次数:
170