伪类样式选择器

 
| :nth-last-child(n) | p:nth-last-child(2) | 选择所有p元素倒数的第二个子元素 | 
| :nth-last-of-type(n) | p:nth-last-of-type(2) | 选择所有p元素倒数的第二个为p的子元素 | 
p:nth-last-child(2) 表示按照全部元素计算,倒数第二元素是p 的
p:nth-last-of-type(2) 表示所有p元素的倒数第二个
导航可以重点看看
https://www.runoob.com/css/css-navbar.html
 
                    
                
 
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号