1.nth-of-type 和 nth-child 区别
- nth-of-type 第几个type
- p:nth-of-type(2) 第二个p标签
- p.highlight:nth-of-type(2) 第二个p标签且类为highlight
- nth-child 子元素的第几个
- p:nth-child(2) 第二个子元素为p的标签
- p.highlight:nth-child(2) 第二个子元素为p的标签且类为highlight
2.git
-
git remote add origin xxxxxxxxxx
-
git merge --allow-unrelated-histories
-
push 过程中如果远端分支名不同于本地分支名时,则需要将两边名称都写上:
git push origin [本地分支名:远端分支名]