2017-05-26 65 views
0

我在我的网站中加载了一个zabuto日历,我在其中加载来自ajax调用的事件。日历中的事件由黄色徽章表示。我的问题是:是否存在改变徽章颜色的方法?在zabuto日历中更改徽章的颜色

这里是我的代码:

<div id="my-calendar"></div> 
    <script type="application/javascript"> 
     $(document).ready(function() { 
      $("#my-calendar").zabuto_calendar({ 
       today: true, 
       language: "es", 
       ajax: { 
        url: "<?php echo base_url();?>index.php/client/build_date/", 
        modal: true 
       } 
      }); 
     }); 
    </script> 

提前感谢!

回答

0

您应该可以使用CSS!重要的覆盖默认颜色。 看一个日历的例子,我认为这应该工作:

.event.event-clickable{ //for a clickable event 
    background-color: blue !important; //your choice of color 
} 

.badge.badge-event{  //for the badge color 
    background-color: red !important; //your choice of color 
}