使用 Javascript/jQquery 创建垂直时间线

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10418534/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 01:13:33  来源:igfitidea点击:

Creating vertical timelines with Javascript/jQquery

javascriptjquerychartstimeline

提问by Renato Dinhani

I saw other questions about libraries to create timelines with Javascript. There are some libraries, but they create horizontal timelines, but I want to create a vertical.

我看到了有关使用 Javascript 创建时间线的库的其他问题。有一些库,但它们创建了水平时间线,但我想创建一个垂直时间线。

So, which is a good library to create vertical timelines?

那么,哪个是创建垂直时间线的好库?

I don't want a timeline like Facebook with posts, but a simple timeline with years and items like in this question, but vertical instead of horizontal.

我不想要像 Facebook 这样带有帖子的时间线,而是一个简单的时间线,上面有年份和项目,就像这个问题中的一样,但垂直而不是水平。

回答by technoTarek

I have a jQuery plugin to create a simple vertical timeline. See thisfor background and thisfor a demo.

我有一个 jQuery 插件来创建一个简单的垂直时间线。请参阅背景和演示。

回答by GillesC

If you want to do a FB like timeline jQuery mansonry is quite good and with a bit of CSS is enough to create the core timeline. Then add what you want to it, I know there is even a tutorial out there for it but can't find it. http://masonry.desandro.com/

如果你想做一个像时间轴这样的 FB,jQuery mansonry 非常好,用一点 CSS 就足以创建核心时间轴。然后添加你想要的东西,我知道那里甚至有一个教程,但找不到它。http://masonry.desandro.com/

Otherwise there is thisproject

否则有这个项目

Here is the FB timeline tutorial, not the best but help getting the basic in place

这是 FB 时间线教程,不是最好的,但可以帮助您掌握基本知识

回答by coderman

I think this is what you are looking for https://github.com/balancemedia/Timeline

我认为这就是你要找的https://github.com/balancemedia/Timeline

This uses Isotopeto create series of events, in a vertically time-sorted structure.

这使用Isotope在垂直时间排序的结构中创建一系列事件。