资源中的固定列宽度FullCalendar [英] Fixed Column Widths in Resource FullCalendar

查看:1721
本文介绍了资源中的固定列宽度FullCalendar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的特殊版本的FullCalendar支持资源视图。
http://tux.fi/~jarnok/fullcalendar-resourceviews/

I am using a special version of FullCalendar that supports Resource Views. http://tux.fi/~jarnok/fullcalendar-resourceviews/

我只有几个问题。它似乎自动设置列宽,我认为应用这种地址:

I only have a couple of problems with it. It seems to automatically set the column widths, which I think applying this sort of addresses that:

.fc-widget-header
{
    width:100px;
}
.fc-widget-content
{
    width:100px;
}
.fc-resourceName
{
    background-color:aliceblue;
    width:150px;
}

然后html写的单元格的宽度是100px,尝试自动适应一切。

Then the html writes that width of the cells is 100px, but it is still trying to auto fit everything.

我想要的是,如果它太大,h滚动,但我总是希望每个单元格都是100px。

What I want it to do is if it is too big, to h-scroll, but I always want each cell to be exactly 100px.

我有这种滚动风格:

#calendar
{
    overflow-x:auto;
}

但是元素仍然显示为基于日期的可变宽度。
这是它的外观:

But the elements are still showing up as variable widths based on the date. Here is what it looks like:

很明显,我的每一列都不是我要求的100px,资源列不是150px。我能做些什么来获得所需的外观?

Clearly, each of my columns are not 100px as I have requested, and the resource columns are not 150px as requested. What can I do to get the desired look?

另一个问题是没有为新的一周定义类。

The other problem is there is no class defined for a new week. I would really like to show the columns where week X is written as different colors.

任何洞察这些都是非常有帮助的。

Any insight into either of these would be very helpful.

感谢

推荐答案

我想我之前有过这个问题,对我来说。

I think I had that problem before, putting this line on my calendar table worked for me.

#calendar表{
table-layout:fixed;
}

这篇关于资源中的固定列宽度FullCalendar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆