SVG

请点击这里,边看视频,边学习教程

一个示例

https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Getting_Started

一些规则

  • The first important thing to notice is the order of rendering elements. The globally valid rule for SVG files is, that later elements are rendered atop previous elements. The further down an element is the more it will be visible.

  • SVG can be directly embedded in HTML or created dynamically with JavaScript and injected into the HTML DOM

基本图形

参考 https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Basic_Shapes