在jquery ui对话框中,如何更改单个模态对话框后面的颜色/合约 [英] in jquery ui dialog, how can i change the color / contract behind a single modal dialogs
问题描述
使用 jquery ui模式对话框,背景为灰色(我假设这是由我的主题滚动)。对于一个特定的模态对话框,我希望背景比我默认使用默认选项更暗。
using the jquery ui modal dialog, the background shades grey (i assuming this is being driven by my theme roller). For one specific modal dialog i want the background to be darker than what i am getting by default with the default options.
更重要的是,我如何更改阴影上的阴影加载一个特定对话框时的背景屏幕。在这种情况下,我不想更改我的主题滚动css的CSS,因为我只想将其应用于一个特定页面。
More importantly, how can i change the shading on the background screen when i load one specific dialog. In this case, I DON'T want to change the css of my theme roller css as i only want this to apply to one specific page.
推荐答案
您可以在您的特殊页面中放置以下内容:从而覆盖背景
Could you place the following in your special page : thus overriding the the background
<style>
.ui-widget-overlay {
background: url("images/ui-bg_flat_0_aaaaaa_40x100.png") repeat-x scroll 50% 50% #AAAAAA;
opacity: 0.3;
}
</style>
只需将不透明度调整到您想要的级别,对于IE,您可能还需要修改图像。 。
Just adjust the opacity to the level you want and for IE you might need modify the image as well..
希望我理解你......
Hope i understand you...
这篇关于在jquery ui对话框中,如何更改单个模态对话框后面的颜色/合约的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!