如何覆盖特定的jquery类?
例如,在我的代码中,我想覆盖.ui小部件头(对于图像)和.ui对话框(设置最大宽度) 但这会影响我的网格。因此,我需要以编程方式设置ui内容如何覆盖特定的jquery类?,jquery,jquery-ui,Jquery,Jquery Ui,例如,在我的代码中,我想覆盖.ui小部件头(对于图像)和.ui对话框(设置最大宽度) 但这会影响我的网格。因此,我需要以编程方式设置ui内容 .ui-dialog { width: 650px !important; } #tabs .ui-widget-header { background-image: url('images/menu_bg_right.png'); background-repeat: no-repeat; /*-- begin IE 7 --7% to left,
.ui-dialog
{
width: 650px !important;
}
#tabs .ui-widget-header
{
background-image: url('images/menu_bg_right.png');
background-repeat: no-repeat;
/*-- begin IE 7 --7% to left, 30% to 100%;55px to 50px*/
background-position: left 100%;
height: 50px;
/*-- end IE 7 --*/
background-color: Transparent;
border: none;
width: 610px;
float: left;
}
网格的图片(实际):
网格的图片(预期):
谢谢
这将终止所选元素上的所有UI样式
$("#sometable .ui-widget-header").css("background-image", "none");
这将删除背景图像样式
但是您可能只想编写更具体的更好的CSS选择器,或者甚至使用!重要修饰语:
body #header #my_table th.ui-widget-header {
background-image: none !important;
}
然后对要删除的其他样式重复此操作-宽度、高度等。不清楚您实际要更改的内容。当您说“这会影响我的网格”时,您能否详细说明这意味着什么以及您到底在尝试什么?
body #header #my_table th.ui-widget-header {
background-image: none !important;
}