You can try...

//css

.gritter-center{
position:fixed;
left:33%;
right:33%;
top:33%
}

 

//Javascript

$.gritter.add({
 title: 'This is a centered notification',
 text: 'Just add a "gritter-center" class_name to your $.gritter.add or globally to   $.gritter.options.class_name',
 class_name: 'gritter-info gritter-center'  
});

 

ref: https://stackoverflow.com/questions/18461530/jquery-gritter-set-position

相关文章:

  • 2022-12-23
  • 2022-01-09
  • 2021-11-29
  • 2022-02-09
  • 2021-10-20
  • 2022-12-23
猜你喜欢
  • 2022-03-01
  • 2022-03-02
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
相关资源
相似解决方案