简体   繁体   English

垂直网格线为 fullcalendar

[英]Vertical grid lines for fullcalendar

I'm using fullcalendar.io I wonder, how can I make it show the vertical grid, table lines?我正在使用 fullcalendar.io 我想知道,如何让它显示垂直网格、表格线?

在此处输入图像描述

I added a css style so now its horizontal lines are visible.我添加了 css 样式,现在它的水平线是可见的。 How to do the same thing for the vertical ones?如何为垂直的做同样的事情?

Make a css class something like: 使CSS类类似于:

.fc .fc-agendaWeek-view .fc-bg tr > td{
    border: 2px solid grey;
}

The vertical lines are in the .fc-bg (background) table of the fullcalendar. 垂直线在全.fc-bg (背景)表中。

You're likely using another library that's overriding your table styles or you just have other css in general that's overriding the styles of the table.您可能正在使用另一个覆盖表 styles 的库,或者您通常只有其他 css 覆盖表的 styles。

Currently in fullcalendar v5, the styles that control this are:目前在fullcalendar v5中,控制这个的styles是:

.fc-theme-standard td, .fc-theme-standard th {
  border: 1px solid #ddd;
  border: 1px solid var(--fc-border-color, #ddd);
}

If those styles are present, then your issue lies with other css.如果存在这些 styles,那么您的问题出在其他 css 上。

For example, in my app, the following css removed the background colors and the lines:例如,在我的应用程序中,以下 css 删除了背景 colors 和线条:

thead, tbody, tfoot {
  border: 1px solid #f1f1f1;
  background-color: #fefefe;
}

And I added the following to fix fullcalendars styling and get my column borders back:我添加了以下内容来修复 fullcalendars 样式并恢复我的列边框:

.fc thead, .fc tbody, .fc tfoot {
  border: inherit;
  background-color: inherit;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM