TimelineJS行上的背景颜色

时间:2014-07-16 21:15:17

标签: javascript jquery css timeline.js

我正在使用TimelineJS建立一个简单的时间轴,我使用'tag'属性将事件分为四个类别(请参阅下面的代码段):

{
"timeline":
    {
    "headline":"The GRM Timeline",
    "type":"default",
    "text":"A timeline of Group de Recherches Musicales",
    "startDate":"1948,1,1",
    "date": [
        {
            "startDate":"1948",
            "endDate":"1960s",
            "headline":"Mechanical Period",
            "tag" : "Periods",
            "text":"<p>Tape Power!</p>"
        },
        {
            "startDate":"1950s",
            "headline":"Pierre Schaeffer",
            "tag" : "Composers"
        },
        {
            "startDate":"1950s",
            "headline":"Etude au chemin de fer",
            "tag" : "Compositions"
        },
        {
            "startDate":"1950s",
            "headline":"Phonogene",
            "tag" : "Intruments"
        }
    ]
}

}

一切都很好: Full view of the timeline

但是我想通过选择背景颜色来设置样式的行,在时间线加载后有没有一种很好的方法来代替jquerying?

0 个答案:

没有答案