Skip to content

Instantly share code, notes, and snippets.

@liuxiaomingskm
Last active February 6, 2020 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liuxiaomingskm/978bad0d3c0c2588041642f750f45bbc to your computer and use it in GitHub Desktop.
Save liuxiaomingskm/978bad0d3c0c2588041642f750f45bbc to your computer and use it in GitHub Desktop.
SVG初体验(划线和分组)
<svg
version='1.1'
baseProfile="full"
smlns="http://www.w3.org/2000/svg">
<g stroke-width="5px" stroke="blue">
<line x1="100" y1="100" x2="700" y2="350" />
<line x1 ="100" y1="350" x2="700" y2="100" />
</g>
</svg>
svg {
border: 1px solid black;
width: 800px;
height: 450px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment