針對(duì)練習(xí)題,“切換背景圖像綜合練習(xí)題”,為什么第二種寫法不對(duì)?
寫法1(正確)? .slider li:nth-of-type(1) a{
??????????? background-color: #02646e;
??????????? }
寫法2(錯(cuò)誤)? .slider a:nth-of-type(1){
??????????? background-color: #02646e;
??????????? }
寫法1(正確)? .slider li:nth-of-type(1) a{
??????????? background-color: #02646e;
??????????? }
寫法2(錯(cuò)誤)? .slider a:nth-of-type(1){
??????????? background-color: #02646e;
??????????? }
2016-04-19
舉報(bào)
2016-04-22
對(duì)的。。
2016-04-22
偽類元素接鏈接是有條件限制的
2016-04-19
知道原因了,因?yàn)楦鱝不是兄弟關(guān)系?。。。。。。。《鴏i是,也可寫成li:nth-of-type(1) a