YUI弹出背景

时间:2013-10-11 10:42:10

标签: javascript yui

我在项目的多个地方使用YUI popus。为此我给出了常见css的身体背景颜色#fff。但在一个弹出窗口中我不想要这个弹出窗口背景。我怎样才能从javascript中删除它。

notifier : new function(){
var n = new YAHOO.widget.Panel("indicator", {
                    width:"200px",  
        x:450,
        y:70,
        fixedCenter:true,
        close:false,  
        draggable:false,  
        zindex:4, 
        modal:true, 
        visible:false 
    }); 

    n.setBody("<img src='"+imagePath+"/loadingBig.gif'/>"+customerMsg.loading+"..."); 

    n.render(document.body); 

}

我想更改此弹出窗口的正文背景。

1 个答案:

答案 0 :(得分:0)

对于单个特定实例更改,您应该能够添加一些类似于此的css:

    #container .yui3-widget-bd {background-color: red;}