Jquery 并排放置完整日历事件。将偶数大小限制为10px 10px
我想知道是否有一种很好的方法来定位Jquery 并排放置完整日历事件。将偶数大小限制为10px 10px,jquery,fullcalendar,Jquery,Fullcalendar,我想知道是否有一种很好的方法来定位FullCalendar事件,就好像它们是向左浮动的一样。它们将在可用的水平空间被填满后垂直堆叠。这看起来没问题,因为事件的大小也将被限制为10px x 10px 我知道我需要更改left:和top:CSS属性 而不是像这样: =======->事件 =======->活动 它看起来是这样的: [--][--]->Event^Event 我在哪里可以在FullCalendar.js中进行更改?在var R,V=la+“-widget header”,ea=la+
FullCalendar
事件,就好像它们是向左浮动的一样。它们将在可用的水平空间被填满后垂直堆叠。这看起来没问题,因为事件的大小也将被限制为10px x 10px
我知道我需要更改left:
和top:
CSS属性
而不是像这样:
=======->事件=======->活动 它看起来是这样的: [--][--]->Event^Event
我在哪里可以在FullCalendar.js中进行更改?在
var R,V=la+“-widget header”,ea=la+“-widget content”附近的.min
版本中您有以下代码:
R="<table class='fc-border-separate' style='width:100%' cellspacing='0'><thead><tr>";for(aa=0;aa<F;aa++)R+="<th class='fc- "+V+"'/>";R+="</tr></thead><tbody>";for(aa=0;aa<w;aa++){R+="<tr class='fc-week"+aa+"'>";for(V=0;V<F;V++)R+="<td class='fc- "+ea+" fc-day"+(aa*F+V)+"'><div>"+(I?"<div class='fc-day-number'/>":"")+"<div class='fc-day-content'><div style='position:relative'> </div></div></div></td>";R+="</tr>"}R+="</tbody></table>";
R=”“;对于(aa=0;aa您需要修改函数renderSlotSegs;代码:
if (levelI) {
// indented and thin
outerWidth = availWidth / (levelI + forward + 1);
}else{
if (forward) {
// moderately wide, aligned left still
outerWidth = ((availWidth / (forward + 1)) - (12/2)) * 2; // 12 is the predicted width of resizer =
}else{
// can be entire width, aligned left
outerWidth = availWidth;
}
}
应改为:
if (levelI) {
// indented and thin
outerWidth = availWidth / (levelI + forward + 1);
}else{
if (forward) {
// changed to limit width of first overlapping slot
outerWidth = availWidth / (forward + 1);
}else{
// can be entire width, aligned left
outerWidth = availWidth;
}
}
我很抱歉这到底为你带来了什么?老亚当,你解决了这个问题吗?我碰巧也需要事件的并排渲染。有人能够解决这个问题吗?我也对事件并排进行感兴趣,直到达到单元格的宽度,然后是新行,等等。。。