2011-01-31 13 views
6

मेरे Jgrowl कोड है:JGrowl विषय सेट

$(document).ready(function() { 
     $.jGrowl("<strong>Error!</strong><br />An invalid ID was passed and your template could not be loaded", { sticky: true, theme: 'test' }); 
    }); 

और Jgrowl सीएसएस में मेरे सीएसएस है:

.test{ 
    background-color:  #000000; 
} 

लेकिन यह बॉक्स है कि सीएसएस आवेदन नहीं किया है। मैं शायद थीम विकल्प का दुरुपयोग कर रहा हूं, लेकिन इस पर अधिक दस्तावेज ढूंढने के लिए संघर्ष कर रहा हूं।

उत्तर

16

.test पृष्ठभूमि-रंग "div.jGrowl div.jGrowl-अधिसूचना" शैली द्वारा ओवरराइड किया गया है। आप .test शैली बना सकता है महत्वपूर्ण:

.test{ 
    background-color:  #000000 !important; 
} 

या तो की तरह अधिक विशेष रूप से .test वर्ग का उपयोग:

"div.jGrowl div.jGrowl-notification.ui-state-test" 

इस यह भी स्थान पर आ जाएगी

संबंधित मुद्दे