如何更改全日历的eventBorderColor厚度? [英] How to change the eventBorderColor thickness in fullcalendar?

查看:79
本文介绍了如何更改全日历的eventBorderColor厚度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在使用日历插件(全日历).我只是在其CSS文件中找不到可以自定义eventBorderColor的宽度/厚度的位置.谢谢!

I'm currently using the Calendar Plugin (fullcalendar). I just couldn't find in its CSS file where I can customize the width/thickness of the eventBorderColor. Thanks!

推荐答案

覆盖类.fc-event-inner:

Override the class .fc-event-inner:

.fc-event-inner {
  border: 5px solid red;
}

或者您可以在事件对象上使用"className"选项并创建该类.确保添加!important属性.

Or you can use the 'className' option on your event objects and create that class. Be sure you add the !important property.

{
   title  : 'event01',
   start  : '2014-08-09',
   className: 'moreBorder'
}


.moreBorder{
  border: 5px solid red !important;
}

这篇关于如何更改全日历的eventBorderColor厚度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆