Please refer to the code below:
<style type="text/css">
.bg1{
background: red;
}
.bg1 .panel-title{
color:#fff;
}
</style>
<script>
$(function(){
var win = $.messager.show({
title:'My Title',
msg:'Message will be closed after 4 seconds.',
showType:'show'
});
win.window('window').addClass('bg1');
});
</script>
is there any simple way than injecting a new css class?
like this one? (not working)
$.messager.show({
width:'500px',
height:'40px',
msg:'<div style="text-align:center;padding:1px;font-size:20px">TEST</div>',
timeout:4000,
showType:'slide',
style:{
borderColor:'#808080',
backgroundColor:'#222222',
color:'#FFFFFF',
right:'',
top:document.body.scrollTop+document.documentElement.scrollTop,
bottom:''
}
});