2014-04-19 38 views
0

我正在考慮使用類似的東西,但它不聽我說。 想排除'標題-5'作爲父母/任何雖然''的'div'?Sass,反轉選擇

感謝

div { 
    @media #{$default} { 
    top: 2em; 

    :not(data-orbit-slide="headline-5") & { 
     top: 0; 
    } 
    } 
} 
+0

[CSS否定僞類:not()for parent/ancestor elements]可能的重複](http://stackoverflow.com/questions/7084112/css-negation-pseudo-class-not-for-parent-ancestor -elements) – cimmanon

回答

-1

看來,它只是沒有媒體quesries內工作。