Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
尝试在jqueryui范围的容器中使用非范围的jqueryui小部件_Jquery_Html_Css_Jquery Ui_Themes - Fatal编程技术网

尝试在jqueryui范围的容器中使用非范围的jqueryui小部件

尝试在jqueryui范围的容器中使用非范围的jqueryui小部件,jquery,html,css,jquery-ui,themes,Jquery,Html,Css,Jquery Ui,Themes,我的页面样式有一个限定范围的jquery ui主题 我想在这个布局中使用一个非范围的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 '

我的页面样式有一个限定范围的jquery ui主题

我想在这个布局中使用一个非范围的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> 
我也曾考虑过将unscoped主题移到“my theme”div之外,但这也造成了它自己的问题,试图将其定位在页面上


非常感谢您的帮助

您不能阻止继承级联,您只能在级联的后期或更具体的情况下覆盖它。所以

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