书号ISBN和CSSN的区别

html-css014

书号ISBN和CSSN的区别,第1张

中国标准连续出版物号,China Standard Serial Number,简称 CSSN;ISSN(国际标准连续出版物号,International Standard Serial Number)是主体

国际标准书号,International Standard Book Number,简称ISBN。

ISSN用于杂志、报纸等刊物;ISBN用于图书等。

在开发中,需要这样一个需求,需要找到第n个孩子元素。一时想不起来应该怎么写,经过查阅后得知。

因此记录一下,以免日后再忘记。

:nth-child 是CSS伪类,它首先找到所有当前元素的兄弟元素,然后按照位置 先后顺序从1开始排序 ,选择的结果为CSS伪类:nth-chilid括号中表达式(an+b)匹配到的元素集合。(n=0,1,2,3)。

tr:nth-child(2n+1)

表示表格中的奇数行

tr:nth-child(odd)

表示表格汇总的奇数行

tr:nth-child(2n)

表示表格中的偶数行

tr:nth-child(even)

表示表格中的偶数行

span:nth-child(0n+1)

表示子元素中第一个且为span的元素,与:first-child选择器的作用相同

span:nth-child(-n+3)

匹配前三个子元素中的span元素

https://developer.mozilla.org/zh-CN/docs/Web/CSS/:nth-child

first-child

first-child表示选择列表中的第一个标签。代码如下:

li:first-child{background:#090}

上面的意思是,li 列表中的 第一个li模块的背景颜色。

2

last-child

last-child表示选择列表中的最后一个标签,代码如下:

li:last-child{background:#090}