When I load the dialog the background gets a little bit grey. I would like to make it darker, but I cannot find a property that is responsible for that. How can I achieve this?
当我加载对话框时,背景会变得有点灰色。我想让它更暗,但我找不到对此负责的财产。我怎样才能做到这一点?
5 个解决方案
#1
41
That is in this css element:
这是在这个css元素:
.ui-widget-overlay {
background: #AAA url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
opacity: .30;
filter: Alpha(Opacity=30);
}
it is on line 294 of: jquery-ui-1.8.11.custom.css
它位于第294行:jquery-ui-1.8.11.custom.css
#2
24
Add this CSS to your stylesheet:
将此CSS添加到样式表:
.ui-widget-overlay
{
opacity: .50 !important; /* Make sure to change both of these, as IE only sees the second one */
filter: Alpha(Opacity=50) !important;
background: rgb(50, 50, 50) !important; /* This will make it darker */
}
#4
4
I had spinlock's problem with Blender's solution, but changing "background-color" to "background" fixed that. I suspect the reason is that the original (jQuery-UI) CSS uses that PNG graphic.
我有Blender解决方案的螺旋锁问题,但将“背景颜色”更改为“背景”修复了这个问题。我怀疑原因是原始(jQuery-UI)CSS使用PNG图形。
#5
3
Like @spinlock I have the strip that run horizontally :
就像@spinlock一样,我有水平运行的条带:
To remove the strip and use a custom background color you can do like this on the open event :
要删除条带并使用自定义背景颜色,您可以在open事件中执行以下操作:
open : function(event, ui){
$("body").css({
overflow: 'hidden'
});
$(".ui-widget-overlay").css({
background:"rgb(0, 0, 0)",
opacity: ".50 !important",
filter: "Alpha(Opacity=50)",
});
},
beforeClose: function(event, ui) {
$("body").css({ overflow: 'inherit' })
}
#1
41
That is in this css element:
这是在这个css元素:
.ui-widget-overlay {
background: #AAA url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
opacity: .30;
filter: Alpha(Opacity=30);
}
it is on line 294 of: jquery-ui-1.8.11.custom.css
它位于第294行:jquery-ui-1.8.11.custom.css
#2
24
Add this CSS to your stylesheet:
将此CSS添加到样式表:
.ui-widget-overlay
{
opacity: .50 !important; /* Make sure to change both of these, as IE only sees the second one */
filter: Alpha(Opacity=50) !important;
background: rgb(50, 50, 50) !important; /* This will make it darker */
}
#3
#4
4
I had spinlock's problem with Blender's solution, but changing "background-color" to "background" fixed that. I suspect the reason is that the original (jQuery-UI) CSS uses that PNG graphic.
我有Blender解决方案的螺旋锁问题,但将“背景颜色”更改为“背景”修复了这个问题。我怀疑原因是原始(jQuery-UI)CSS使用PNG图形。
#5
3
Like @spinlock I have the strip that run horizontally :
就像@spinlock一样,我有水平运行的条带:
To remove the strip and use a custom background color you can do like this on the open event :
要删除条带并使用自定义背景颜色,您可以在open事件中执行以下操作:
open : function(event, ui){
$("body").css({
overflow: 'hidden'
});
$(".ui-widget-overlay").css({
background:"rgb(0, 0, 0)",
opacity: ".50 !important",
filter: "Alpha(Opacity=50)",
});
},
beforeClose: function(event, ui) {
$("body").css({ overflow: 'inherit' })
}