如何仅使用 HTML 和 CSS 制作流程图/图表
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15567278/
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
How to make a flowchart/diagram using only HTML and CSS
提问by Variax
I need to make a really complicated diagram for a website, in which the hierarchy will be a bit messy: arrows will go up and down, sometimes an element will point to several others, and sometimes there will be several elements pointing to the same one. I have found this method, but it doesn't allow more than one parent for an element and therefore won't do the trick in this case.
我需要为一个网站制作一个非常复杂的图表,其中的层次结构会有点混乱:箭头会上下移动,有时一个元素会指向其他几个元素,有时会有多个元素指向同一个. 我找到了这个方法,但它不允许一个元素有多个父元素,因此在这种情况下不会起作用。
It has to be done in HTML/CSS, because my intention is to add some Javascript to change the content of the blocks dinamically.
它必须在 HTML/CSS 中完成,因为我的目的是添加一些 Javascript 来动态更改块的内容。
This is an example of the level of complexity I need to achieve:
这是我需要达到的复杂程度的一个例子: