2012-07-03 113 views

回答

2

嘿,現在習慣了這種像

.childDiv:nth-of-type(2){ 
// css style /// 
} 

或----------- -

.parentDiv > .childDiv:last-child{ 
    // css style /// 
    } 

或------------------

,如果你只有兩個childiv

.parentDiv > .childDiv + .childDiv{ 
    // css style /// 
    } 
+0

太感謝你了它的做工精細,因爲我需要 – ashokcc

1

試試這個 -

.childDiv:nth-child(2) { 
    //css properties 
} 

工作小提琴是here