在 Fullcalendar 中围绕所选日期添加边框

Rob*_*lls 2 css fullcalendar

我正在使用 FullCalender 并希望更改我的月和周视图中的样式,以便所选日期不是黄色阴影,而是它周围有一个粗边框。

我试过了

.fc-state-highlight, .fc-unthemed .fc-today {
    background-color: white;
    border: 3px solid #f26122;
}
Run Code Online (Sandbox Code Playgroud)

但这只是在表格单元格的顶部和左侧绘制了一个边框:

在此处输入图片说明

Cas*_*unt 5

这应该工作...

.fc-widget-content.fc-state-highlight:before {
  content: '\00a0';
  border: 3px solid #f26122;
  height: 100%;
  width: calc(100% - 6px);
  display: block;
  position: relative;
  background: transparent;
}
.fc-state-highlight {
  background: none !important;
}
Run Code Online (Sandbox Code Playgroud)

请记住,width需要采用 100% - [以像素为单位的 2x 边框宽度] 的格式。