2010-02-16 53 views
0

我有我的頁面樣式作用域jQuery UI的主題。試圖使用jQueryUI的內非作用域jQueryUI的部件範圍的容器

我想用一個無範圍的UI組件內這個佈局(用戶將使用themeswitcher工具來定製自己的「自定義組件」的樣子。)

這樣

<div class="my-theme"> 
    content and a bunch of widgets here 

    <div class="unscoped-theme"> 
     i want this div to effectively ignore the 'my-theme' css 
    </div> 
</div> 

我「以前也被認爲只是移動無範圍主題外‘我的主題’DIV,但創造它試圖把它定位正確的頁面

任何幫助非常感謝對自己的問題!

回答

0

你不能阻止繼承級聯,你只能覆蓋它,無論是後來的級聯,或具有更高特異性。所以......

.my-theme{font-weight: bold} 
.my-theme .unscoped-theme{font-weight: normal}