html - 如何使用完整日历设置宽度边框事件?

标签 html css symfony calendar fullcalendar

我试图在我的完整日历中包含两种事件。我会区分它们。

颜色不是一个好主意,因为我需要在两种事件中使用不同的颜色。我已经考虑过边框颜色。但是适当的边框颜色有一个非常小的边框。我想将边框宽度设置得更大。

我该怎么做?

我已经在我的主 CSS 中尝试过:

.fc-event-inner {
    border-color: red;
    border-style: solid;
    border-width: 15px;
}

但它无所不能。

谢谢 最好的问候

PS:我在这个 symfony budle 中使用 fullcalendar:https://github.com/adesigns/calendar-bundle

最佳答案

我使用 eventRender 来处理它们:

eventRender={info =>{
        info.el.style.borderWidth = '4px'
        info.el.style.borderRadius = '0px'                       
    }}

关于html - 如何使用完整日历设置宽度边框事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36136056/

相关文章:

Python - 解析 HTML 类

html - 父级 <section> 中的两个 <div> "columns",试图将右侧 div 相对于父级垂直居中。

Symfony2 - 可捕获的 fatal error : _construct() must be an instance of Doctrine\ORM\EntityManager

php - Doctrine2中的多对多关系导致迁移时出现重复错误

html - rem 在 Dev Console 中,如何将 "convert"转换为 px?

php - Doctrine2 表达式 eq 用于匹配所有的特殊字符

html - 表格中的响应图像 (bootstrap 3)

html - 将 ng-click 绑定(bind)到一个 css 类

javascript - 并排放置动态创建的 Plotly 表

html - 塌陷时不均匀的 Bootstrap 药丸