我正试图用一个变量表示的渐变背景来填充特定日期。
例如
var x = 10; // background should be fully covered by the gradient
var x = 1; // background should cover only one tenth of the cell
我可以通过将其添加到styles.scss文件中来解决这个问题。
td.fc-day {
border: $border;
position: relative;
}
td.fc-day:after {
height: 50%;
position: absolute;
background: $gradient;
bottom: 0;
left: 0;
right: 0;
content: 'A';
}